Visual Basic (Declaration) | |
---|---|
Public Overloads Function AddMethod( _ ByVal itemID As String, _ ByVal methodID As String, _ ByVal description As String, _ ByVal inputArguments() As ArgumentDefinition, _ ByVal outputArguments() As ArgumentDefinition, _ ByVal onCall As GenericMethodCalledEventHandler2 _ ) As ServiceResult |
C# | |
---|---|
public ServiceResult AddMethod( string itemID, string methodID, string description, ArgumentDefinition[] inputArguments, ArgumentDefinition[] outputArguments, GenericMethodCalledEventHandler2 onCall ) |
Parameters
- itemID
- The identifier of the node the contains the method definition.
- methodID
- The identifier of the method node.
- description
- Description of the method.
- inputArguments
- The definition of the required input arguments.
- outputArguments
- The definition of the output arguments (method results).
- onCall
- The method to be called when a UA client calls the method.
Return Value
Success/error code.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family