DefaultFieldValue Class

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

System.Object
  Microsoft.VisualStudio.Package.DefaultFieldValue

public class DefaultFieldValue

NameDescription
System_CAPS_pubmethodDefaultFieldValue(String, String)

Initializes a new instance of the DefaultFieldValue class.

NameDescription
System_CAPS_pubpropertyField

Returns the name of the field.

System_CAPS_pubpropertyValue

Returns the value of the field.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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 Implementers:

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: