CodeGroup.CreateXml(SecurityElement, PolicyLevel) 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.
When overridden in a derived class, serializes properties and internal state specific to a derived code group and adds the serialization to the specified SecurityElement.
protected:
virtual void CreateXml(System::Security::SecurityElement ^ element, System::Security::Policy::PolicyLevel ^ level);
protected virtual void CreateXml (System.Security.SecurityElement element, System.Security.Policy.PolicyLevel level);
abstract member CreateXml : System.Security.SecurityElement * System.Security.Policy.PolicyLevel -> unit
override this.CreateXml : System.Security.SecurityElement * System.Security.Policy.PolicyLevel -> unit
Protected Overridable Sub CreateXml (element As SecurityElement, level As PolicyLevel)
Parameters
- element
- SecurityElement
The XML encoding to which to add the serialization.
- level
- PolicyLevel
The policy level within which the code group exists.
Remarks
ToXml cannot be overridden. If you need to serialize members specific to a particular implementation of CodeGroup, you must override CreateXml and serialize your members there. When the code group is serialized, ToXml calls CreateXml and adds your serialization to the SecurityElement created by ToXml.
The XML created using this method is deserialized by the ParseXml method.
Notes to Inheritors
If you implement this method, you must implement the ParseXml(SecurityElement, PolicyLevel) method as well.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기