KeyedReferenceCollection.Add Method (String, String, String)
Note: The Microsoft UDDI SDK is not supported by or included in Microsoft Windows versions after Microsoft Windows Server 7. The Microsoft UDDI V3 SDK is included with Microsoft BizTalk Server. For more information about the Microsoft UDDI V3 SDK, see Microsoft BizTalk Server documentation
Adds a KeyedReference object to the collection with the specified tModelKey, value, and name.
Namespace: Microsoft.Uddi
Assembly: microsoft.uddi (in microsoft.uddi.dll)
Usage
Visual Basic |
---|
Dim instance As KeyedReferenceCollection Dim tModelKey As String Dim keyValue As String Dim keyName As String Dim returnValue As Integer returnValue = instance.Add(tModelKey, keyValue, keyName) |
Syntax
'Declaration
PublicFunctionAdd ( _
tModelKeyAsString, _
keyValueAsString, _
keyNameAsString _
) AsInteger
publicintAdd (
stringtModelKey,
stringkeyValue,
stringkeyName
)
public:
intAdd (
String^ tModelKey,
String^ keyValue,
String^ keyName
)
publicintAdd (
StringtModelKey,
StringkeyValue,
StringkeyName
)
publicfunctionAdd (
tModelKey : String,
keyValue : String,
keyName : String
) : int
Parameters
- tModelKey
The tModelKey of the reference.
- keyValue
The value of the reference.
- keyName
The name of the reference.
Return Value
The location of the KeyedReference object in the collection.
Example
The following example shows how to use the Visual C# programming language and the Add(String,String,String) method to add a list of category references to the CategoryBag property, and then get the results of a request from a UDDI server.
static void GetCategorizationSchemesExample( UddiConnection validConnection )
{
FindTModel getTModel = new FindTModel();
getTModel.CategoryBag.Add( CommonCanonical.UddiOrgTypes, "categorization", "Categorization (taxonomy)" );
TModelList list = new TModelList();
list = getTModel.Send( validConnection );
}
The following example shows how to use the Visual Basic .NET programming language and the Add(String,String,String) method to add a list of category references to the CategoryBag property, and then get the results of a request from a UDDI server.
Sub GetCategorizationSchemesExample(ByVal conn As UddiConnection)
Dim getTModel As New FindTModel
getTModel.CategoryBag.Add(TModels.CommonCanonical.UddiOrgTypes, "categorization", "Categorization (taxonomy)")
Dim list As New TModelList
list = getTModel.Send(conn)
End Sub
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Target Platforms
Windows Server 2008, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP
See Also
Reference
KeyedReferenceCollection Class
KeyedReferenceCollection Members
Microsoft.Uddi Namespace