EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

IBackgroundCopyJob::SetDisplayName method

Specifies a display name for the job. Typically, you use the display name to identify the job in a user interface.

Syntax


HRESULT SetDisplayName(
  [in]  LPCWSTR pDisplayName
);

Parameters

pDisplayName [in]

Null-terminated string that identifies the job. Must not be NULL. The length of the string is limited to 256 characters, not including the null terminator.

Return value

This method returns the following HRESULT values, as well as others.

Return codeDescription
S_OK

Display name was successfully set.

E_INVALIDARG

The pDisplayName parameter cannot be NULL or the name exceeds 256 characters.

BG_E_STRING_TOO_LONG

The display name exceeds 256 characters.

BG_E_INVALID_STATE

The state of the job cannot be BG_JOB_STATE_CANCELLED or BG_JOB_STATE_ACKNOWLEDGED.

 

Remarks

The display name is originally set when you create the job. For details on specifying the display name when you create the job, see the IBackgroundCopyManager::CreateJob method.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Bits.h

IDL

Bits.idl

Library

Bits.lib

DLL

QmgrPrxy.dll

IID

IID_IBackgroundCopyJob is defined as 37668D37-507E-4160-9316-26306D150B12

See also

IBackgroundCopyJob::GetDisplayName
IBackgroundCopyManager::CreateJob

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft