次の方法で共有


MSFT_NfsOpenFile class

Represents a file that an NFS client computer currently holds open on an NFS share hosted by 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_NfsOpenFile
{
  string StateId;
  string NetworkName;
  uint64 ClientId;
  string FileName;
  uint32 Access;
  uint32 ShareMode;
  string AccountName;
};

Members

The MSFT_NfsOpenFile class has these types of members:

Methods

The MSFT_NfsOpenFile class has these methods.

Method Description
RevokeOpenFile Close the file handle for a file that is held open by an NFS client computer.

Properties

The MSFT_NfsOpenFile class has these properties.

Access

Data type: uint32

Access type: Read-only

The access that the server granted to the client for the open file.

READ (1)

WRITE (2)

READWRITE (3)

AccountName

Data type: string

Access type: Read-only

The name of the account that has opened this file on the NFS server. This can be either a Windows user account name or a combination of UNIX user identifier and UNIX group identifier.

ClientId

Data type: uint64

Access type: Read-only

The client identifier for the client computer.

FileName

Data type: string

Access type: Read-only

The path to the open file.

NetworkName

Data type: string

Access type: Read-only

Qualifiers: key

The network name to which the client connected for this open file.

ShareMode

Data type: uint32

Access type: Read-only

The share mode for the open file.

READWRITE (0)

WRITE (1)

READ (2)

NONE (3)

StateId

Data type: string

Access type: Read-only

Qualifiers: key

The 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