共用方式為


DfsrInfo class

The DFSR monitoring provider class. This singleton class has provider-specific settings in addition to computer-wide service properties and methods.

Syntax

[Dynamic, Provider("DfsrMonitorProv"), Singleton]
class DfsrInfo
{
  string   ProviderVersion;
  datetime ServiceStartTime;
  datetime LastDsPollTime;
  uint8    State;
  uint32   LastErrorCode;
  uint32   LastErrorMessageId;
};

Members

The DfsrInfo class has these types of members:

Properties

The DfsrInfo class has these properties.

LastDsPollTime

Data type: datetime

Access type: Read-only

Qualifiers: DisplayName ("Last Active Directory Domain Services Poll Time")

The last time there was an attempt to poll the Active Directory Domain Services; it does not matter whether the attempt succeeded.

LastErrorCode

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Last Error Code")

The last error code.

DFSR_E_DS_POLLING_FAILED

Could not connect to the Active Directory.

LastErrorMessageId

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Last Error Message ID")

Event log message identifier that corresponds to the last error code.

Success (0)

ProviderVersion

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("DFS Replication Monitoring Provider Version")

The current version of the provider.

ServiceStartTime

Data type: datetime

Access type: Read-only

Qualifiers: DisplayName ("Service Start Time")

The time stamp of the last service start.

State

Data type: uint8

Access type: Read-only

Qualifiers: DisplayName ("State")

The current state of the DFSR service.

Service Starting (0)

Service Running (1)

Service Degraded (2)

Service Shutting Down (3)

Remarks

The following state diagram illustrates the transitions between the service states.

dfsr service state diagram

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
End of client support
Windows 7
Namespace
Root\MicrosoftDfs
MOF
DfsRProvs.mof
DLL
DfsRWmiV2.dll

See also

DFSR WMI Classes