Compartir a través de


CodeSnippetExpression Constructores

Definición

Inicializa una nueva instancia de la clase CodeSnippetExpression.

Sobrecargas

CodeSnippetExpression()

Inicializa una nueva instancia de la clase CodeSnippetExpression.

CodeSnippetExpression(String)

Inicializa una nueva instancia de la clase CodeSnippetExpression utilizando la expresión literal especificada.

CodeSnippetExpression()

Source:
CodeSnippetExpression.cs
Source:
CodeSnippetExpression.cs
Source:
CodeSnippetExpression.cs

Inicializa una nueva instancia de la clase CodeSnippetExpression.

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

Se aplica a

CodeSnippetExpression(String)

Source:
CodeSnippetExpression.cs
Source:
CodeSnippetExpression.cs
Source:
CodeSnippetExpression.cs

Inicializa una nueva instancia de la clase CodeSnippetExpression utilizando la expresión literal especificada.

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

Parámetros

value
String

Expresión literal que se va a representar.

Ejemplos

En el ejemplo de código siguiente se muestra el uso del CodeSnippetExpression constructor para crear una instancia de la CodeSnippetExpression clase .

// 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")

Se aplica a