Share via


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

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

See Also

Reference

ICodeInjectionService Interface

Microsoft.Windows.Design.Services Namespace