SecurityElement.Text Property
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.
Gets or sets the text within an XML element.
public:
property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
public string? Text { get; set; }
public string Text { get; set; }
member this.Text : string with get, set
Public Property Text As String
Property Value
The value of the text within an XML element.
Exceptions
The text is not valid in XML.
Examples
The following code shows the use of the Text property to get the text of an XML element. This code example is part of a larger example provided for the SecurityElement class.
String^ xmlTreeDescription = xmlElement->Text;
string xmlTreeDescription = xmlElement.Text;
Dim xmlTreeDescription As String = xmlElement.Text
Remarks
The text should not contain XML special characters. Use Escape to remove invalid characters from the string.
If a SecurityElement contains both Text and Children, Text will appear first.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om