ICodeInjectionService.CreateMethod-Methode

Erstellt eine Methode mit der angegebenen Signatur.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Function CreateMethod ( _
    method As CodeMemberMethod _
) As Boolean
bool CreateMethod(
    CodeMemberMethod method
)
bool CreateMethod(
    CodeMemberMethod^ method
)
abstract CreateMethod : 
        method:CodeMemberMethod -> bool 
function CreateMethod(
    method : CodeMemberMethod
) : boolean

Parameter

Rückgabewert

Typ: System.Boolean
true, wenn die Methode erstellt wurde, andernfalls false.

Hinweise

CreateMethod gibt false zurück, wenn der Methodenname nicht eindeutig ist.

.NET Framework-Sicherheit

Siehe auch

Referenz

ICodeInjectionService Schnittstelle

Microsoft.Windows.Design.Services-Namespace