Share via


MSFT_FSRMFMJCondition class

Represents the file management job conditions.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[dynamic, provider("FSRMWmiProvider")]
class MSFT_FSRMFMJCondition
{
  string Property;
  uint32 Condition;
  string Value;
  sint32 DateOffset;
};

Members

The MSFT_FSRMFMJCondition class has these types of members:

Methods

The MSFT_FSRMFMJCondition class has these methods.

Method Description
CreateFMJCondition Creates an MSFT_FSRMFMJCondition instance.

Properties

The MSFT_FSRMFMJCondition class has these properties.

Condition

Data type: uint32

Access type: Read/write

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".

DateOffset

Data type: sint32

Access type: Read/write

An integer offset from the date value. Optional. The default value is 0.

Property

Data type: string

Access type: Read/write

A string up to 1KB in size. Required.

The name of a valid classification property on the server.

File.Name

File.DateCreated

File.DateLastModified

File.DateLastAccessed

Value

Data type: string

Access type: Read/write

A string less than 1KB in size. The default is an empty string.

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.

Remarks

When the Property property refers to a classification property, the type of the classification property determines which Condition property 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
MSFT_FSRM.mof
DLL
SrmSvc.dll

See also

FSRM WMI Classes