ModelingPackage.CreateLocator Method

Creates a model element locator for the package.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Protected Overridable Function CreateLocator As ModelElementLocator
'使用
Dim returnValue As ModelElementLocator

returnValue = Me.CreateLocator()
protected virtual ModelElementLocator CreateLocator()
protected:
virtual ModelElementLocator^ CreateLocator()
protected function CreateLocator() : ModelElementLocator

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.ModelElementLocator

The model element locator.

Remarks

Derived classes can override this method to provide their own model element locators.

Permissions

See Also

Reference

ModelingPackage Class

ModelingPackage Members

Microsoft.VisualStudio.Modeling.Shell Namespace