Commands2.Raise 메서드

지정된 명령을 실행합니다.

네임스페이스:  EnvDTE80
어셈블리:  EnvDTE80(EnvDTE80.dll)

구문

‘선언
Sub Raise ( _
    Guid As String, _
    ID As Integer, _
    <OutAttribute> ByRef CustomIn As Object, _
    <OutAttribute> ByRef CustomOut As Object _
)
void Raise(
    string Guid,
    int ID,
    out Object CustomIn,
    out Object CustomOut
)
void Raise(
    [InAttribute] String^ Guid, 
    [InAttribute] int ID, 
    [InAttribute] [OutAttribute] Object^% CustomIn, 
    [InAttribute] [OutAttribute] Object^% CustomOut
)
abstract Raise : 
        Guid:string * 
        ID:int * 
        CustomIn:Object byref * 
        CustomOut:Object byref -> unit
function Raise(
    Guid : String, 
    ID : int, 
    CustomIn : Object, 
    CustomOut : Object
)

매개 변수

  • Guid
    형식: String

    필수 요소. 명령의 GUID입니다.

  • ID
    형식: Int32

    필수 요소. 명령의 ID입니다.

  • CustomIn
    형식: Object%

    필수 요소. OLECommandTarget에서 매개 변수입니다.

  • CustomOut
    형식: Object%

    필수 요소. OLECommandTarget에 대 한 out 매개 변수입니다.

예제

Sub RaiseExample()
   ' Before running, you must add a reference to the Office 
   ' typelib to gain access to the CommandBar object.
   Dim cmds As Commands
   Dim cmdobj As Command
   Dim customin, customout As Object
   Dim colAddins As AddIns

   ' Set references.
   colAddins = DTE.AddIns()
   cmds = DTE.Commands
   cmdobj = cmds.Item("File.NewFile")

   ' Execute the File.NewFile command.
   cmds.Raise(cmdobj.Guid, cmdobj.ID, customin, customout)
End Sub

.NET Framework 보안

참고 항목

참조

Commands2 인터페이스

EnvDTE80 네임스페이스