PolicyStatement.ToXml Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an XML encoding of the security object and its current state.
Overloads
| ToXml() | Creates an XML encoding of the security object and its current state. | 
| ToXml(PolicyLevel) | Creates an XML encoding of the security object and its current state. | 
ToXml()
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
Creates an XML encoding of the security object and its current state.
public:
 virtual System::Security::SecurityElement ^ ToXml();public System.Security.SecurityElement ToXml();abstract member ToXml : unit -> System.Security.SecurityElement
override this.ToXml : unit -> System.Security.SecurityElementPublic Function ToXml () As SecurityElementReturns
An XML encoding of the security object, including any state information.
Implements
Applies to
ToXml(PolicyLevel)
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
- Source:
- PolicyStatement.cs
Creates an XML encoding of the security object and its current state.
public:
 virtual System::Security::SecurityElement ^ ToXml(System::Security::Policy::PolicyLevel ^ level);public System.Security.SecurityElement ToXml(System.Security.Policy.PolicyLevel level);abstract member ToXml : System.Security.Policy.PolicyLevel -> System.Security.SecurityElement
override this.ToXml : System.Security.Policy.PolicyLevel -> System.Security.SecurityElementPublic Function ToXml (level As PolicyLevel) As SecurityElementParameters
- level
- PolicyLevel
The PolicyLevel context for lookup of NamedPermissionSet values.
Returns
An XML encoding of the security object, including any state information.