Interface IPolicyDeserializer
Defines policy deserializer interface.
Namespace: Nevatech.Vsb.Repository.Services.Policies
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface IPolicyDeserializer
Methods
CanDeserialize(String)
When implemented by a class, checks whether deserialization of the specified policy configuration is supported by this instance.
Declaration
bool CanDeserialize(string configuration)
Parameters
Type | Name | Description |
---|---|---|
System.String | configuration | The XML policy configuration string. |
Returns
Type | Description |
---|---|
System.Boolean | True if deserialization of |
Deserialize(String)
When implemented by a class, deserializes policy description from the provided configuration.
Declaration
PolicyDescription Deserialize(string configuration)
Parameters
Type | Name | Description |
---|---|---|
System.String | configuration | The configuration to deserialize. |
Returns
Type | Description |
---|---|
PolicyDescription | The PolicyDescription created from |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if the specified |