DefaultFieldValue Class
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Associates a default value with a field name as defined in a code snippet template for a language service.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Dichiarazione
Public Class DefaultFieldValue
'Utilizzo
Dim instance As DefaultFieldValue
public class DefaultFieldValue
public ref class DefaultFieldValue
type DefaultFieldValue = class end
public class 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 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.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Package.DefaultFieldValue
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.