ICodeInjectionService.CreateMethod Method
Creates a method with the specified signature.
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
Parameters
- method
Type: System.CodeDom.CodeMemberMethod
A CodeMemberMethod that specifies the signature.
Return Value
Type: System.Boolean
true if the method was created; otherwise, false.
Remarks
CreateMethod returns false if the method name is not unique.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.