Udostępnij za pośrednictwem


SyntaxFactory.XmlEntity Method

Definition

Creates a token with kind XmlEntityLiteralToken.

public:
 static Microsoft::CodeAnalysis::SyntaxToken XmlEntity(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::String ^ value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken XmlEntity (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, string value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member XmlEntity : Microsoft.CodeAnalysis.SyntaxTriviaList * string * string * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function XmlEntity (leading As SyntaxTriviaList, text As String, value As String, trailing As SyntaxTriviaList) As SyntaxToken

Parameters

leading
SyntaxTriviaList

A list of trivia immediately preceding the token.

text
String

The raw text of the literal.

value
String

The xml entity value.

trailing
SyntaxTriviaList

A list of trivia immediately following the token.

Returns

Applies to