CodeSnippetExpression Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menginisialisasi instans baru kelas CodeSnippetExpression.
Overload
CodeSnippetExpression() |
Menginisialisasi instans baru kelas CodeSnippetExpression. |
CodeSnippetExpression(String) |
Menginisialisasi instans CodeSnippetExpression baru kelas menggunakan ekspresi harfiah yang ditentukan. |
CodeSnippetExpression()
- Sumber:
- CodeSnippetExpression.cs
- Sumber:
- CodeSnippetExpression.cs
- Sumber:
- CodeSnippetExpression.cs
Menginisialisasi instans baru kelas CodeSnippetExpression.
public:
CodeSnippetExpression();
public CodeSnippetExpression ();
Public Sub New ()
Berlaku untuk
CodeSnippetExpression(String)
- Sumber:
- CodeSnippetExpression.cs
- Sumber:
- CodeSnippetExpression.cs
- Sumber:
- CodeSnippetExpression.cs
Menginisialisasi instans CodeSnippetExpression baru kelas menggunakan ekspresi harfiah yang ditentukan.
public:
CodeSnippetExpression(System::String ^ value);
public CodeSnippetExpression (string value);
new System.CodeDom.CodeSnippetExpression : string -> System.CodeDom.CodeSnippetExpression
Public Sub New (value As String)
Parameter
- value
- String
Ekspresi harfiah untuk diwakili.
Contoh
Contoh kode berikut menunjukkan penggunaan CodeSnippetExpression konstruktor untuk membuat instans CodeSnippetExpression kelas.
// 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")