Encode code group as security policy object- with policy level context
[Visual Basic] Overloads Overridable Public Function ToXml( _ ByVal level As PolicyLevel _ ) As SecurityElement [C#] public virtual SecurityElement ToXml( PolicyLevel level ); [C++] public: virtual SecurityElement* ToXml( PolicyLevel* level ); [JScript] public function ToXml( level : PolicyLevel ) : SecurityElement;
An XML encoding of the security object, including any state information.
Custom code that extends security objects will need to implement the ToXML and FromXML methods to make the objects security-encodable.
The policy level context is provide for resolution of named permission sets.
UnionCodeGroup Class | UnionCodeGroup Members | System.Security.Policy Namespace | UnionCodeGroup.ToXml Overload List