Export (0) Print
Expand All
ID
Top
Expand Minimize

InfoLocation Property (General Extensibility)

Visual Studio .NET 2003

Describes the capabilities of the code model.

[Visual Basic .NET]
Public ReadOnly Property InfoLocation() As vsCMInfoLocation
[Visual Basic 6]
Property Get InfoLocation() As vsCMInfoLocation
[C++]
HRESULT __stdcall get_InfoLocation(
   /* [out, retval] */ vsCMInfoLocation* retVal
);
[C#]
vsCMInfoLocation InfoLocation {get;}
[JScript .NET]
public function get InfoLocation() : vsCMInfoLocation

Return Value

Returns a vsCMInfoLocation constant value.

Remarks

If InfoLocation returns vsCMInfoLocationProject, then you can set properties, obtain a StartPoint and EndPoint, and so forth. When you go from one code model object (A) to another (B) — such as from a function to its type or from a class to its base class — B may be of type vsCMInfoLocationExternal if its definition is in another project. The disposition depends on the code model implementation, whether object B's project is implemented in the same language as object A's, and so forth.

If InfoLocation returns vsCMInfoLocationExternal, then information is available only from metadata, inspecting a DLL, or from frozen sources. You may be able to obtain a StartPoint and EditPoint, but you cannot edit the document; that is, you cannot set properties or modify the text behind the code element.

If InfoLocation returns vsCMInfoLocationNone, then all that is available is a code model object that has a name. Also, based on the context of the source code, in some cases you can tell whether the name should be a class or an interface. In this situation, however, because the code model could not resolve the name to any real, useful information, the object is otherwise useless.

See Also

Applies To: CodeAttribute Object | CodeClass Object | CodeDelegate Object | CodeElement Object | CodeEnum Object | CodeFunction Object | CodeInterface Object | CodeNameSpace Object | CodeParameter Object | CodeProperty Object | CodeStruct Object | CodeType Object | CodeVariable Object | VCCodeAttribute Object | VCCodeBase Object | VCCodeClass Object | VCCodeDelegate Object | VCCodeElement Object | VCCodeEnum Object | VCCodeEvent Object | VCCodeFunction Object | VCCodeIDLCoClass Object | VCCodeIDLImport Object | VCCodeIDLImportLib Object | VCCodeIDLLibrary Object | VCCodeImport Object | VCCodeInclude Object | VCCodeInterface Object | VCCodeMacro Object | VCCodeMap Object | VCCodeMapEntry Object | VCCodeNamespace Object | VCCodeParameter Object | VCCodeProperty Object | VCCodeStruct Object | VCCodeTypedef Object | VCCodeUnion Object | VCCodeVariable Object | VCCodeUsing Object

Show:
© 2014 Microsoft