Windows Dev Center

IFsrmFileScreenTemplate::Name property

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileScreenTemplate class.]

Retrieves and sets the name of the file screen template.

This property is read/write.

Syntax


HRESULT put_Name(
  [in]  BSTR name
);

HRESULT get_Name(
  [out] BSTR *name
);

Property value

A unique name for the file screen template. The name is limited to 4,000 characters and cannot contain commas, single quotes, double quotes, or vertical bars.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success.

E_POINTER

The name parameter cannot be NULL on input.

E_INVALIDARG

The name contains characters that are not valid.

FSRM_E_OUT_OF_RANGE

The name is too long.

Remarks

If a template with the specified name exists, the template fails with FSRM_E_ALREADY_EXISTS when you call the IFsrmFileScreen::Commit method.

Examples

For an example, see Using Templates to Define File Screens.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmScreen.h

IDL

FsrmScreen.idl

DLL

SrmSvc.dll

IID

IID_IFsrmFileScreenTemplate is defined as 205bebf8-dd93-452a-95a6-32b566b35828

See also

IFsrmFileScreenTemplate
MSFT_FSRMFileScreenTemplate

 

 

Show:
© 2015 Microsoft