CreateFMJCondition method of the MSFT_FSRMFMJCondition class
Creates an MSFT_FSRMFMJCondition instance.
Syntax
uint64 CreateFMJCondition(
[in] string Property,
[in] uint32 Condition,
[in] string Value,
[in] sint32 DateOffset,
[out] MSFT_FSRMFMJCondition FmjCondition
);
Parameters
-
Property [in]
-
A string up to 1KB in size. Required.
-
The name of a valid classification property on the server. See the Remarks section for details concerning which property types are compatible with which Condition parameter values.
-
File.Name
-
File.DateCreated
-
File.DateLastModified
-
File.DateLastAccessed
Condition [in]
Describes the condition that must be matched for the file management job. Required.
Equal (1)
The property condition is met if the property value is equal to a specified value.
NotEqual (2)
The property condition is met if the property value is not equal to a specified value.
GreaterThan (3)
The property condition is met if the property value is greater than to a specified value.
LessThan (4)
The property condition is met if the property value is less than to a specified value.
Contain (5)
The property condition is met if the property value contains the specified value.
Exist (6)
The property condition is met if the property value exists.
NotExist (7)
The property condition is met if the property value does not exist.
StartWith (8)
The property condition is met if the property value starts with the specified value.
EndWith (9)
The property condition is met if the property value ends with the specified value.
ContainedIn (10)
The property condition is met if the property value is contained in the specified value.
PrefixOf (11)
The property condition is met if the property value is a prefix of the specified value.
SuffixOf (12)
The property condition is met if the property value is a suffix of the specified value.
MatchesPattern (13)
The property condition is met if the property value matches the specified pattern. The pattern format is a semicolon-separated list of wildcard patterns. For example "*.exe;*.com".
Value [in]
A string less than 1KB in size. The default is an empty string. The Value parameter must not be empty unless the Condition parameter is "Exist" (6) or "NotExist" (7). The table shows the possible values to use for each of the Property parameter values.
This shows the types of vales to use for the Value parameter for each Property parameter
A classification property name that is not a DateTime property.
Must be compatible with the property definition.
A classification property name that is a DateTime property.
- A valid FileTime
- File.DateCreated
- File.DateLastModified
- File.DateLastAccessed
- Date.Now
File.Name
Strings with wildcards of '*' and '?' separated by a semicolon.
File.DateCreated
A positive integer.
File.DateLastModified
A positive integer.
File.DateLastAccessed
A positive integer.
DateOffset [in]
An integer offset from the date value. Optional. The default value is 0.
FmjCondition [out]
Returns an instance of the MSFT_FSRMFMJCondition class.
Remarks
When the Property parameter refers to a classification property, the type of the classification property determines which Condition values are acceptable. See the Type property of MSFT_FSRMClassificationPropertyDefinition.
Integer | String | YesNo | OrderedList | SingleChoice | MultiChoice | MultiString | DateTime | |
Equal | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
NotEqual | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Exist | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
NotExist | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Contains | No | Yes | No | No | No | Yes | Yes | No |
ContainedIn | No | Yes | No | No | No | No | No | No |
LessThan | Yes | Yes | No | Yes | No | No | No | Yes |
GreaterThan | Yes | Yes | No | Yes | No | No | No | Yes |
StartsWith | No | Yes | No | No | No | No | No | No |
EndsWith | No | Yes | No | No | No | No | No | No |
PrefixOf | No | Yes | No | No | No | No | No | No |
SuffixOf | No | Yes | No | No | No | No | No | No |
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\FSRM |
MOF |
|
DLL |
|