共用方式為


ICodeInjectionService.CreateMethod 方法

建立具有指定簽章的方法。

命名空間:  Microsoft.Windows.Design.Services
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
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

參數

傳回值

型別:System.Boolean
如果已建立方法則為 true,否則為 false。

備註

如果方法名稱不是唯一的,CreateMethod 便會傳回 false。

.NET Framework 安全性

請參閱

參考

ICodeInjectionService 介面

Microsoft.Windows.Design.Services 命名空間