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
'Declaration
Protected Overridable Function CreateLocator As ModelElementLocator
'Usage
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.