DfsrConnectionInfo class
This class provides statistical and operational information for each incoming and outgoing connection of the local replication group members.
Syntax
class DfsrConnectionInfo : CIM_LogicalElement
{
string ConnectionGuid;
string MemberGuid;
string MemberName;
string PartnerGuid;
string PartnerName;
string ReplicationGroupGuid;
string ReplicationGroupName;
boolean Inbound;
uint32 State;
datetime LastSyncTime;
uint32 LastSyncDuration;
datetime LastSuccessfulSyncTime;
datetime NextSyncTime;
uint32 LastErrorCode;
uint32 LastErrorMessageId;
};
Members
The DfsrConnectionInfo class has these types of members:
Methods
The DfsrConnectionInfo class has these methods.
| Method | Description |
|---|---|
| CheckConnectivity |
Checks connectivity with the partner's computer. |
| ForceDownload |
Forces a download of a specified resource. |
| ForceFolderReplication |
Controls replication by forcing a designated folder to replicate. After the duration expires, the DFS Replication service will revert to the configured replication schedule. |
| ForceReplication |
Controls replication by either forcing or suspending replication. DFSR will revert to the normal schedule at the end of the specified duration. |
Properties
The DfsrConnectionInfo class has these properties.
- ConnectionGuid
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key, MinLen (36) , MaxLen (36)
The unique connection identifier.
- Inbound
-
- Data type: boolean
- Access type: Read-only
Indicates the direction of the connection between the local computer and this partner; it can be inbound (coming from the partner) or outbound (going to the partner).
- LastErrorCode
-
- Data type: uint32
- Access type: Read-only
- Qualifiers: Values (Success) , ValueMap (0)
The last error code.
Value Meaning - DFSR_E_CANNOT_CONNECT
Could not connect to the partner.
This value is returned only for inbound connections.
- LastErrorMessageId
-
- Data type: uint32
- Access type: Read-only
- Qualifiers: Values (Success) , ValueMap (0)
The event log message identifier that corresponds to the last error code.
For DFSR_E_CANNOT_CONNECT, the LastErrorMessageId is one of the following values.
- LastSuccessfulSyncTime
-
- Data type: datetime
- Access type: Read-only
The time stamp of the last successful synchronization session since the service was started. The default value is 1/1/9999.
This property is valid only for inbound connections.
- LastSyncDuration
-
- Data type: uint32
- Access type: Read-only
- Qualifiers: Units ("Seconds")
The duration of the last successful synchronization session, in seconds. The default value is 0.
This property is valid only for inbound connections.
- LastSyncTime
-
- Data type: datetime
- Access type: Read-only
The time stamp of the last attempted synchronization operation. The default is 1/1/9999.
This property is valid only for inbound connections.
- MemberGuid
-
- Data type: string
- Access type: Read-only
- Qualifiers: MinLen (36) , MaxLen (36)
The local replication group member identifier.
- MemberName
-
- Data type: string
- Access type: Read-only
The member name. This is typically the unqualified DNS name of the local computer.
- NextSyncTime
-
- Data type: datetime
- Access type: Read-only
The time stamp of next scheduled synchronization session. The default value is 1/1/9999.
This property is valid only for inbound connections.
- PartnerGuid
-
- Data type: string
- Access type: Read-only
- Qualifiers: MinLen (36) , MaxLen (36)
The unique identifier of the partner object.
- PartnerName
-
- Data type: string
- Access type: Read-only
The partner name. This is typically the unqualified DNS name of the partner computer.
- ReplicationGroupGuid
-
- Data type: string
- Access type: Read-only
- Qualifiers: MinLen (36) , MaxLen (36)
The unique replication group identifier.
- ReplicationGroupName
-
- Data type: string
- Access type: Read-only
The name of the replication group that owns this connection.
- State
-
- Data type: uint32
- Access type: Read-only
- Qualifiers: Values (Connecting, Online, Offline, In Error) , ValueMap (0, 1, 2, 3)
The current connection state.
Remarks
Outbound connections are created on demand after the partner establishes a connection. The DFSR service cannot detect when an outbound connection has been deleted; by default, it waits for 12 hours idle time before determining that the connection has been lost.
Inbound connections persist as long as they are configured.
The following state diagram illustrates the transitions between the connection states.

Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 R2 [desktop apps only] |
|
End of client support | Windows Vista |
|
Namespace |
\\.\Root\MicrosoftDfs |
|
MOF |
|
Send comments about this topic to Microsoft
Build date: 10/26/2012