Freigeben über


CodeSnippetExpression-Konstruktor (String)

Initialisiert eine neue Instanz der CodeSnippetExpression-Klasse unter Verwendung des angegebenen literalen Ausdrucks.

Namespace: System.CodeDom
Assembly: System (in system.dll)

Syntax

'Declaration
Public Sub New ( _
    value As String _
)
'Usage
Dim value As String

Dim instance As New CodeSnippetExpression(value)
public CodeSnippetExpression (
    string value
)
public:
CodeSnippetExpression (
    String^ value
)
public CodeSnippetExpression (
    String value
)
public function CodeSnippetExpression (
    value : String
)

Parameter

  • value
    Der darzustellende literale Ausdruck.

Beispiel

' 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")
// 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.
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");

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

CodeSnippetExpression-Klasse
CodeSnippetExpression-Member
System.CodeDom-Namespace