Commands2.Raise Yöntem (String, Int32, Object%, Object%)
Belirtilen komutu yürütür.
Ad alanı: EnvDTE80
Derleme: EnvDTE80 (EnvDTE80.dll içinde)
Sözdizimi
'Bildirim
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
)
Parametreler
- Guid
Tür: System.String
Gerekli.Komutun GUID.
- ID
Tür: System.Int32
Gerekli.Komut kimliği.
- CustomIn
Tür: System.Object%
Gerekli.OLECommandTarget geçirilen bağımsız bir SafeArray içinde.
- CustomOut
Tür: System.Object%
Gerekli.SafeArray bağımsız OLECommandTarget tarafından döndürülen geçirilen.
Yüklenen
Commands.Raise(String, Int32, Object%, Object%)
Örnekler
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 Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. kısmen güvenilir kod tarafından Kitaplıklar kullanma.