Show / Hide Table of Contents

    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
    String configuration

    The XML policy configuration string.

    Returns
    Type Description
    Boolean

    True if deserialization of configuration is supported by this instance, false otherwise.

    Deserialize(String)

    When implemented by a class, deserializes policy description from the provided configuration.

    Declaration
    PolicyDescription Deserialize(string configuration)
    Parameters
    Type Name Description
    String configuration

    The configuration to deserialize.

    Returns
    Type Description
    PolicyDescription

    The PolicyDescription created from configuration or null if configuration is not supported.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if the specified configuration argument is null.

    Back to top Nevatech Sentinet 6.5 Online Documentation