CodeSnippetExpression Konstruktory

Definice

Inicializuje novou instanci CodeSnippetExpression třídy .

Přetížení

CodeSnippetExpression()

Inicializuje novou instanci CodeSnippetExpression třídy .

CodeSnippetExpression(String)

Inicializuje novou instanci CodeSnippetExpression třídy pomocí zadaného literál výrazu.

CodeSnippetExpression()

Zdroj:
CodeSnippetExpression.cs
Zdroj:
CodeSnippetExpression.cs
Zdroj:
CodeSnippetExpression.cs

Inicializuje novou instanci CodeSnippetExpression třídy .

public:
 CodeSnippetExpression();
public CodeSnippetExpression ();
Public Sub New ()

Platí pro

CodeSnippetExpression(String)

Zdroj:
CodeSnippetExpression.cs
Zdroj:
CodeSnippetExpression.cs
Zdroj:
CodeSnippetExpression.cs

Inicializuje novou instanci CodeSnippetExpression třídy pomocí zadaného literál výrazu.

public:
 CodeSnippetExpression(System::String ^ value);
public CodeSnippetExpression (string value);
new System.CodeDom.CodeSnippetExpression : string -> System.CodeDom.CodeSnippetExpression
Public Sub New (value As String)

Parametry

value
String

Literálový výraz, který má představovat.

Příklady

Následující příklad kódu ukazuje použití konstruktoru CodeSnippetExpression k vytvoření instance CodeSnippetExpression třídy .

// Creates a CodeSnippetExpression that represents a literal string that
// can be used as an expression in a CodeDOM graph.
CodeSnippetExpression^ literalExpression =
   gcnew CodeSnippetExpression( "Literal expression" );
// Creates a CodeSnippetExpression that represents a literal string that
// can be used as an expression in a CodeDOM graph.
CodeSnippetExpression literalExpression =
    new CodeSnippetExpression("Literal expression");
' Creates a CodeSnippetExpression that represents a literal string that
' can be used as an expression in a CodeDOM graph.
Dim literalExpression As New CodeSnippetExpression("Literal expression")

Platí pro