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
參數
- method
型別:System.CodeDom.CodeMemberMethod
指定簽章的 CodeMemberMethod。
傳回值
型別:System.Boolean
如果已建立方法則為 true,否則為 false。
備註
如果方法名稱不是唯一的,CreateMethod 便會傳回 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。