CodeSnippetExpression Constructor (String)

 

Initializes a new instance of the CodeSnippetExpression class using the specified literal expression.

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

public CodeSnippetExpression(
	string value
)

Parameters

value
Type: System.String

The literal expression to represent.

The following code example demonstrates in the use of the CodeSnippetExpression constructor to create an instance of the CodeSnippetExpression class.

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

.NET Framework
Available since 1.1
Return to top
Show: