Adds a category ID GUID to the mapping.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Sub AddCATIDMapping ( _
type As Type, _
catid As Guid _
)
'使用
Dim type As Type
Dim catid As Guid
Me.AddCATIDMapping(type, catid)
protected void AddCATIDMapping(
Type type,
Guid catid
)
protected:
void AddCATIDMapping(
Type^ type,
Guid catid
)
protected function AddCATIDMapping(
type : Type,
catid : Guid
)
Parameters
type
Type: System.TypeThe type of the category being mapped.
catid
Type: System.GuidThe GUID of the category.
Remarks
This is used to specify a CATID corresponding to a BrowseObject or an ExtObject. The CATID can be any GUID. For your own types you could use the type GUID; for other types (such as those provided in the MPF) you should provide a different GUID.
Permissions
- 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.