Export (0) Print
Expand All

UccCredential 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.

Illustrates the implementation of a user credential. The class cannot be co-created.

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

public ref class UccCredential abstract
public abstract class UccCredential
public abstract class UccCredential

This class implements the IUccCredential interface. The default interface is IUccCredential. 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 cannot be co-created. It is intended to illustrate that the implemented interfaces can be queried from each other as well as the events raised in an instance of this class.

Win32 COM/C++ Syntax

coclass UccCredential
{
   [default] interface IUccCredential;
};

System.Object
  Microsoft.Office.Interop.UccApi.UccCredential

The following example method returns a new instance of the UccCredential class provided by the credential cache. If the specified server transport mode is UCC_TRANSPORT_MODE.UCCTM_TCP, the user name, password, and domain must be specified.

private UccCredential NewCredential(
   IUccServerSignalingSettings pServer, 
   string pUserName, 
   string pPassword, 
   string pDomain)
{
   UccCredential returnValue = null;
   UccCredentialCache credentialCache = pServer.CredentialCache;
   if (pServer.Server.TransportMode == UCC_TRANSPORT_MODE.UCCTM_TCP)
   {
      returnValue = credentialCache.CreateCredential(
         pUserName, 
         pPassword, 
         pDomain);
   }
   else if (pServer.Server.TransportMode == UCC_TRANSPORT_MODE.UCCTM_TLS)
   {
      returnValue = credentialCache.DefaultCredential;
   }
   return returnValue;
}

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

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

Show:
© 2014 Microsoft