次の方法で共有


MSFT_Nfsv4ClientLock class

Represents a lock that a client computer holds on a file that resides on a Windows NFS version 4.1 server.

The following syntax is simplified from Managed Object Format (MOF) code.

Syntax

[ClassVersion("1.0"), dynamic, provider("nfscimprov"), AMENDMENT]
class MSFT_Nfsv4ClientLock : MSFT_NfsClientLock
{
  string LockedFile;
  uint32 LockType;
  string StateId;
  string NetworkName;
  uint64 ClientId;
  string AccountName;
};

Members

The MSFT_Nfsv4ClientLock class has these types of members:

Properties

The MSFT_Nfsv4ClientLock class has these properties.

AccountName

Data type: string

Access type: Read-only

The name of the account that has locked the file on the NFS server. This can be either a Windows user account name or a combination of UNIX user identifier (UID) and UNIX group identifier (GID).

ClientId

Data type: uint64

Access type: Read-only

Client identifier for the client computer.

LockedFile

Data type: string

Access type: Read-only

The local file path to the locked file on the Windows NFS server.

This property is inherited from MSFT_NfsClientLock.

LockType

Data type: uint32

Access type: Read-only

The type of lock. There are two lock types:

  • NLM locks, for shares accessed over NFS version 2 or version 3 with NLM
  • NFS locks, for shares accessed over NFS version 4.1

This property is inherited from MSFT_NfsClientLock.

NLM (1)

NFS (2)

NetworkName

Data type: string

Access type: Read-only

Qualifiers: key

Network name to which the client connected for this locked file.

StateId

Data type: string

Access type: Read-only

Qualifiers: key

State identifier.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\NFS
MOF
NfsCimProv.mof
DLL
NfsCimProv.dll