Share via


ExpansionFunction Members

Include Protected Members
Include Inherited Members

Provides support for expansion functions in code snippets for a language service.

The ExpansionFunction type exposes the following members.

Constructors

 

Name

Description

Public method

ExpansionFunction

Initializes a new instance of the ExpansionFunction class.

Top

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Public method

FieldChanged

Called when a field has changed its value.

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetArgument

Gets the specified argument.

Public method

GetCurrentValue

Overloaded. Gets the current value of the expansion function.

Public method

GetDefaultValue

Overloaded. Gets the default value for the expansion function.

Public method

GetFieldValue

Gets the value of the specified field.

Public method

GetFunctionType

Gets the type of the function; that is, what type of value the function returns.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetIntellisenseList

Gets a list of all values the expansion function can return.

Public method

GetListCount

Gets the number of items in the list of values for the expansion function.

Public method

GetListText

Gets the value of the specified list item.

Public method

GetSelection

Gets the span of the selected text in the current view.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ReleaseFunction

Frees any allocations your ExpansionFunction class may have made.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

Arguments

Gets or sets the arguments to the function.

Public property

ExpansionProvider

Gets the expansion provider that owns this expansion function.

Public property

FieldName

Gets or sets the name of the field with which this expansion function is associated.

Top

See Also

Reference

ExpansionFunction Class

Microsoft.VisualStudio.Package Namespace