次の方法で共有


GetStorageVolumeNameFromJob method of the MSFT_SMSystem class

Returns a storage volume name associated with a Job.

Syntax

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

Parameters

Job [in]

Reference to the MSFT_SMJob instance.

StorageVolumeName [out]

The storage volume name.

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
End of client support
None supported
End of server support
Windows Server 2012
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMSystem