Constable Authorization Engine 2.0 BETA

FilePolicyStore.Save Method 

[This is preliminary documentation and subject to change.]

Saves the policy to the file.

[Visual Basic]
Overrides Public Sub Save( _
   ByVal instance As Object, _
   ByVal moniker As PersistentMoniker _
)
[C#]
public override void Save(
   object instance,
   PersistentMoniker moniker
);

Parameters

instance
An instance of the AuthorizationPolicy class that should be saved to the file.
moniker
An instance of the FileMoniker class representing the file where the policy should be saved.

Exceptions

Exception Type Condition
ArgumentNullException A a null reference (Nothing in Visual Basic) was passed as the value of the or the parameter.
ArgumentException The reference isn't a refernce to the AuthorizationPolicy (or a derived) class, or the reference isn't a reference to the FileMoniker (or a derived) class.

See Also

FilePolicyStore Class | LaMarvin.Constable.Design.Persistence Namespace