IVsProfferCommands2.AddCommandBar 方法 (String, vsCommandBarType, Object, UInt32, Object%)
此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
仅由 Microsoft 内部使用。
命名空间: EnvDTE80
程序集: EnvDTE80(在 EnvDTE80.dll 中)
语法
声明
Sub AddCommandBar ( _
pszCmdBarName As String, _
dwType As vsCommandBarType, _
pCmdBarParent As Object, _
dwIndex As UInteger, _
<OutAttribute> ByRef ppCmdBar As Object _
)
void AddCommandBar(
string pszCmdBarName,
vsCommandBarType dwType,
Object pCmdBarParent,
uint dwIndex,
out Object ppCmdBar
)
void AddCommandBar(
[InAttribute] String^ pszCmdBarName,
[InAttribute] vsCommandBarType dwType,
[InAttribute] Object^ pCmdBarParent,
[InAttribute] unsigned int dwIndex,
[OutAttribute] Object^% ppCmdBar
)
abstract AddCommandBar :
pszCmdBarName:string *
dwType:vsCommandBarType *
pCmdBarParent:Object *
dwIndex:uint32 *
ppCmdBar:Object byref -> unit
function AddCommandBar(
pszCmdBarName : String,
dwType : vsCommandBarType,
pCmdBarParent : Object,
dwIndex : uint,
ppCmdBar : Object
)
参数
- pszCmdBarName
类型:System.String
- dwType
类型:EnvDTE.vsCommandBarType
- pCmdBarParent
类型:System.Object
- dwIndex
类型:System.UInt32
- ppCmdBar
类型:System.Object%
实现
IVsProfferCommands.AddCommandBar(String, vsCommandBarType, Object, UInt32, Object%)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。