次の方法で共有


GetStorageVolumeObjectIdFromJob method of the MSFT_SMSystem class

Returns a storage volume object id based on a Job reference.

Syntax

uint32 GetStorageVolumeObjectIdFromJob(
  [in]            MSFT_SMJob        REF Job,
  [out]           string                StorageVolumeObjectId,
  [in, optional]  String                username,
  [in, optional]  String                password,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

Job [in]

Reference to the MSFT_SMJob instance.

StorageVolumeObjectId [out]

Storage Volume ObjectId.

username [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

password [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

Not Found (6)

StorageService: Generic Failure (51000)

StorageService: Invalid connection credentials (51005)

StorageService: SSL connection failure (51010)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMSystem