IFsrmFileManagementJob::FileNamePattern property

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

A condition property: wildcard filter for names.

This property is read/write.

Syntax


HRESULT put_FileNamePattern(
  [in] BSTR fileNamePattern
);

HRESULT get_FileNamePattern(
       BSTR *pFileNamePattern
);

Property value

The desired wildcard filter for names. Setting this property to an empty string disables this condition. The pattern cannot contain the following: question mark (?), slash mark (/), backslash (\), greater than sign (>), less than sign (<), vertical bar (|), or colon (:).

Error codes

The method returns the following return values.

S_OK

Success

E_INVALIDARG

The fileNamePattern contains and invalid pattern.

Remarks

A file name pattern is a string expression that defines a set of file names. The expression may contain the following wildcard characters: "*" and "?". The "*" wildcard matches zero or more characters and the "?" wildcard matches exactly 1 character. For example, the file name "example.cpp" matches the pattern "e*.cpp", but not "e?.cpp". The file name "ex.cpp" would match both patterns. Note that when the file name pattern is used to compare against a specific file name, the pattern match is case-insensitive.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Header

FsrmReports.h

DLL

SrmSvc.dll

IID

IID_IFsrmFileManagementJob is defined as 0770687e-9f36-4d6f-8778-599d188461c9

See also

IFsrmFileManagementJob
MSFT_FSRMFileManagementJob

 

 

Show: