System.Security.ISecurityEncodable Interface

Assembly: Mscorlib.dll
Namespace: System.Security
Summary
Defines the methods that convert permission object state to and from XML element representation.
C# Syntax:
public interface ISecurityEncodable
Remarks
The XML representation of permissions is used to describe instances of permissions for code requests, declarative security permission sets, and security policy configuration.

Note You must implement this interface for any new permission object.
See also:
System.Security Namespace

System.Security.ISecurityEncodable Member List:

Public Methods
FromXml Reconstructs a security object with a specified state from an XML encoding.
ToXml Creates an XML encoding of the security object and its current state. Creates an XML encoding of the security object and its current state.

System.Security.ISecurityEncodable Member Details

Method: FromXml(
   SecurityElement e
)
Summary
Reconstructs a security object with a specified state from an XML encoding.
C# Syntax:
void FromXml(
   SecurityElement e
);
Parameters:

e

The XML encoding to use to reconstruct the security object.

Remarks
Custom code that extends security objects needs to implement the ISecurityEncodable.ToXml and ISecurityEncodable.FromXml methods to make the objects security-encodable.

Return to top


Method: ToXml()
Summary
Creates an XML encoding of the security object and its current state.
C# Syntax:
SecurityElement ToXml();
Return Value:
An XML encoding of the security object, including any state information.
Return Value:
An XML encoding of the security object, including any state information.
Remarks
Custom code that extends security objects needs to implement the ISecurityEncodable.ToXml and ISecurityEncodable.FromXml methods to make the objects security-encodable.
Remarks
Custom code that extends security objects will need to implement the ISecurityEncodable.ToXml and ISecurityEncodable.FromXml methods to make the objects security-encodable.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.