IUccPropertyCollection Interface

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.

Encapsulates a read/write property collection.

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

Syntax

'Declaration
Public Interface IUccPropertyCollection
    Inherits IUccReadOnlyPropertyCollection, IUccCollection, IDispatch, IUnknown
public interface IUccPropertyCollection : IUccReadOnlyPropertyCollection, IUccCollection, IDispatch, 
    IUnknown
public interface class IUccPropertyCollection : IUccReadOnlyPropertyCollection, IUccCollection, IDispatch, 
    IUnknown
public interface IUccPropertyCollection extends IUccReadOnlyPropertyCollection, IUccCollection, 
    IDispatch, IUnknown
public interface IUccPropertyCollection extends IUccReadOnlyPropertyCollection, IUccCollection, 
    IDispatch, IUnknown

Remarks

Each element of the collection is an IUccProperty instance. A property can be identified by a number (ID) or a string (Name). The latter is also known as a named property. The IUccPropertyCollection inteface exposes methods that add or remove properties from a collection in addition to the property query and read functionality provided by the IUccReadOnlyPropertyCollection interface implementation.

The IUccPropertyCollection interface is the default interface of the UccPropertyCollection. An instance of UccPropertyCollection class can be cocreated by a client. Because the IUccPropertyCollection is the default interface of this class, methods can be called and properties accessed directly on the class instance.

Win32 COM/C++ Syntax

interface IUccPropertyCollection : IUccReadOnlyPropertyCollection

Example

The following example accepts a string property name and string value and returns a new UccPropertyCollection instance that includes a single property based on the property name and value passed in to the method.

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

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

IUccPropertyCollection Members
Microsoft.Office.Interop.UccApi Namespace