Share via


DefaultFieldValue Class

Definition

Associates a default value with a field name as defined in a code snippet template for a language service.

public ref class DefaultFieldValue
[Windows::Foundation::Metadata::WebHostHidden]
class DefaultFieldValue
public class DefaultFieldValue
type DefaultFieldValue = class
Public Class DefaultFieldValue
Inheritance
DefaultFieldValue

Remarks

This class associates a field name with a string value that is considered the default value for the field. In a code snippet template, a field is a label that is placed in the code body and is replaced by a value when the code body is inserted into the source file (otherwise known as inserting a code snippet). Each field can have a value that is explicitly defined (the default value) or is obtained from an expansion function (see the ExpansionFunction class for details on expansion functions).

Notes to Inheritors

There is nothing special required of implementers.

Notes to Callers

You can use this class to track default values for fields; however, this is already done for you in Visual Studio for all code snippets so there is little need to use this class.

Constructors

DefaultFieldValue(String, String)

Initializes a new instance of the DefaultFieldValue class.

Properties

Field

Returns the name of the field.

Value

Returns the value of the field.

Applies to