UccPropertyCollection Class

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Represents a co-creatable class for a collection of properties supported by other Unified Communications Client API entities. The class can be co-created.

Namespace: Microsoft.Office.Interop.UccApi
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)

Syntax

'Declaration
Public Class UccPropertyCollection
public class UccPropertyCollection
public ref class UccPropertyCollection
public class UccPropertyCollection
public class UccPropertyCollection

Remarks

This class implements the IUccPropertyCollection, IUccReadOnlyPropertyCollection, and IUccCollection interfaces. The default interface is IUccPropertyCollection. An application obtains the default interface on the class instance directly. Non-default interfaces, if any, can be obtained by calling QueryInterface on the default interface. This class can be co-created.

Win32 COM/C++ Syntax

coclass UccPropertyCollection
{
   [default] interface IUccPropertyCollection;
   interface IUccReadOnlyPropertyCollection;
   interface IUccCollection;
};

Inheritance Hierarchy

System.Object
  Microsoft.Office.Interop.UccApi.UccPropertyCollection

Example

The following example creates a new instance of UccPropertyCollectionClass and returns a reference to the default interface of the class. The passed property name string and value object are added as a property of the new collection.

private UccPropertyCollection MakeNewPropertyCollectionClass(
   string propertyName,
   object propertyValue)
{
   UccPropertyCollection returnValue;
   returnValue = new UccPropertyCollectionClass();
   returnValue.AddNamedProperty(propertyName, propertyValue);
   return returnValue;
}

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2000 with Service Pack 4, Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

UccPropertyCollection Members
Microsoft.Office.Interop.UccApi Namespace