XmlAnyElementAttribute Constructors
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.
Initializes a new instance of the XmlAnyElementAttribute class.
Overloads
XmlAnyElementAttribute() |
Initializes a new instance of the XmlAnyElementAttribute class. |
XmlAnyElementAttribute(String) |
Initializes a new instance of the XmlAnyElementAttribute class and specifies the XML element name generated in the XML document. |
XmlAnyElementAttribute(String, String) |
Initializes a new instance of the XmlAnyElementAttribute class and specifies the XML element name generated in the XML document and its XML namespace. |
XmlAnyElementAttribute()
- Source:
- XmlAnyElementAttribute.cs
- Source:
- XmlAnyElementAttribute.cs
- Source:
- XmlAnyElementAttribute.cs
Initializes a new instance of the XmlAnyElementAttribute class.
public:
XmlAnyElementAttribute();
public XmlAnyElementAttribute ();
Public Sub New ()
Remarks
Use the XmlAnyElementAttribute constructor when you are overriding the serialization of a field. For more details about overriding serialization, see the XmlAttributeOverrides class.
Applies to
XmlAnyElementAttribute(String)
- Source:
- XmlAnyElementAttribute.cs
- Source:
- XmlAnyElementAttribute.cs
- Source:
- XmlAnyElementAttribute.cs
Initializes a new instance of the XmlAnyElementAttribute class and specifies the XML element name generated in the XML document.
public:
XmlAnyElementAttribute(System::String ^ name);
public XmlAnyElementAttribute (string name);
public XmlAnyElementAttribute (string? name);
new System.Xml.Serialization.XmlAnyElementAttribute : string -> System.Xml.Serialization.XmlAnyElementAttribute
Public Sub New (name As String)
Parameters
- name
- String
The name of the XML element that the XmlSerializer generates.
Remarks
Use the XmlAnyElementAttribute constructor when you are overriding the serialization of a field. For more details about overriding serialization, see the XmlAttributeOverrides class.
Applies to
XmlAnyElementAttribute(String, String)
- Source:
- XmlAnyElementAttribute.cs
- Source:
- XmlAnyElementAttribute.cs
- Source:
- XmlAnyElementAttribute.cs
Initializes a new instance of the XmlAnyElementAttribute class and specifies the XML element name generated in the XML document and its XML namespace.
public:
XmlAnyElementAttribute(System::String ^ name, System::String ^ ns);
public XmlAnyElementAttribute (string name, string ns);
public XmlAnyElementAttribute (string? name, string? ns);
new System.Xml.Serialization.XmlAnyElementAttribute : string * string -> System.Xml.Serialization.XmlAnyElementAttribute
Public Sub New (name As String, ns As String)
Parameters
- name
- String
The name of the XML element that the XmlSerializer generates.
- ns
- String
The XML namespace of the XML element.
Remarks
Use the XmlAnyElementAttribute constructor when you are overriding the serialization of a field. For more details about overriding serialization, see the XmlAttributeOverrides class.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기