Description Property

This property is a textual description of the error.

Syntax

ReplicationClientError.Description

Remarks

You get access to the ReplicationClientError object by calling the ReplicationClient.GetExtendedErrorInfo method, which returns an array of ReplicationClientError objects. Since the array is empty when no error information is available, be sure to do bounds checking before accessing the array.

Example

The following example attempts to initialize the project named Project1. If it cannot, it displays any error codes and error descriptions that Content Deployment returns.

Option Explicit 
On Error Resume Next

dim Client
set Client = CreateObject("CrsApi.ReplicationClient")
Client.Initialize("Project1")
if err.Number > 0 then
  dim ClientError
  Set ClientError = Client.GetExtendedErrorInfo
end if
'If the ClientError array isn't empty, loop through it
'and display each error
dim NumElements = Ubound(ClientError)
if NumElements > 0 then
  dim i
  for i = 0 to NumElements
    Wscript.Echo "Error code: " & ClientError(i).ErrorCode
    Wscript.Echo "Description: " & ClientError(i).Description
  Next
  end if
'Release objects
set ClientError = Nothing
set Client      = Nothing

See Also

ReplicationClient.GetExtendedErrorInfo


© 1997-1998 Microsoft Corporation. All rights reserved.