uaPLUS Reference
AddMethod(String,String,String,ArgumentDefinition[],ArgumentDefinition[],GenericMethodCalledEventHandler2) Method
See Also  Send Feedback
Advosol.uaPLUS Namespace > uaPLUS Class > AddMethod Method : AddMethod(String,String,String,ArgumentDefinition[],ArgumentDefinition[],GenericMethodCalledEventHandler2) Method

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.

Glossary Item Box

Handler method in the Advosol.uaPLUS.uaPLUS class adds a Method Node including the property nodes that define the input/output arguments.

Syntax

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

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.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.