MSFT_FSRMClassificationRule class

Defines a classification rule. The rule defines the paths to which the rule applies, the classifier module to run on files in those paths, and the property and property value used to classify each file.

To create a classification rule, call the IFsrmClassificationManager::CreateRule method.

Syntax

[dynamic, provider("FSRMWmiProvider")]
class MSFT_FSRMClassificationRule
{
  string   Name;
  string   Description;
  boolean  Disabled;
  string   Property;
  string   PropertyValue;
  string   Namespace[];
  uint32   ReevaluateProperty;
  string   ClassificationMechanism;
  string   Parameters[];
  datetime LastModified;
  uint32   Flags[];
  string   ContentRegularExpression[];
  string   ContentString[];
  string   ContentStringCaseSensitive[];
};

Members

The MSFT_FSRMClassificationRule class has these types of members:

Properties

The MSFT_FSRMClassificationRule class has these properties.

ClassificationMechanism

Data type: string

Access type: Read/write

The name of a valid classification mechanism available on the server. Required. The value must be under 1KB.

ContentRegularExpression

Data type: string array

Access type: Read/write

A list of regular expressions to search for, provided to the content classifier. Optional. The list size must be under 25KB. Default value is an empty list.

ContentString

Data type: string array

Access type: Read/write

A list of strings to search for, provided to the content classifier. Optional. The list size must be under 25KB. Default value is an empty list.

ContentStringCaseSensitive

Data type: string array

Access type: Read/write

A list of case sensitive strings to search for, provided to the content classifier. Optional. The list size must be under 25KB. Default value is an empty list.

Description

Data type: string

Access type: Read/write

A string up to 1KB in size. Optional. The default value is an empty string.

Disabled

Data type: boolean

Access type: Read/write

Defines whether the rule is enabled or disabled. The default value is false.

Flags

Data type: uint32 array

Access type: Read/write

Array of flags describing the rule.

Deprecated (4096)

The rule is deprecated.

ClearManuallyClassifiedProperty (2048)

TBD

Windows Server 2012: This value is not supported before Windows Server 2012 R2.

ClearAutomaticallyClassifiedProperty (1024)

TBD

Windows Server 2012: This value is not supported before Windows Server 2012 R2.

LastModified

Data type: datetime

Access type: Read-only

The date for the last time the rule was modified.

Name

Data type: string

Access type: Read/write

Qualifiers: key

A unique string up to 100 characters in length. Required.

Namespace

Data type: string array

Access type: Read/write

A list of valid local folder paths on the server. Each string is not to exceed the MAX_PATHvalue. Can be valid values for the FolderUsage classification property. If providing FolderUsage properties, the format "[FolderUsage_MS=value]" must be used. The default value is an empty list.

Parameters

Data type: string array

Access type: Read/write

A list of strings formatted as "<name>=<value>", as accepted by the COM API for rule parameters. Optional. The default value is an empty list.

Property

Data type: string

Access type: Read/write

The name of a valid classification property that is available on the server. The value is required and limited to a size of 1KB.

PropertyValue

Data type: string

Access type: Read/write

The value to which the property is set upon successful classification. The value is optional and limited to a size of 4 KB. The default value is an empty string.

ReevaluateProperty

Data type: uint32

Access type: Read/write

Sets the evaluation policy of the rule. Optional.

Never (1)

The rule is applied as a default value to the file if the property is not set on the file (if none of the storage modules returns the property). if the property is set on the file the rule is not reevaluated.

Aggregate (2)

The rule is applied to the file considering default and existing values using aggregation rules.

Overwrite (3)

The rule is applied to the file but default and existing values are ignored.

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