Condividi tramite


IFsrmRule.NamespaceRoots Property

 

Gets or sets an array of directory paths that the rule is applied to when classification is run

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

object[] NamespaceRoots { get; set; }
property array<Object^>^ NamespaceRoots {
    array<Object^>^ get();
    void set(array<Object^>^ value);
}
abstract NamespaceRoots : Object[] with get, set
Property NamespaceRoots As Object()

Property Value

Type: System.Object[]

Returns a Object that contains an array of namespaces to scan. Each entry is either a valid path on the server that contains no wildcards (static namespaces) or the value of a FolderUsage property defined on the server (also called dynamic namespaces). If providing FolderUsage properties, the format "[FolderUsage_MS=value]" must be used. The path is limited to 260 characters. Each element of the SAFEARRAY is a VARIANT of type VT_BSTR. Set the bstrVal member of the variant to the directory path.

Remarks

All subdirectories under the specified path are also scanned (recursively).

Note that FSRM supports only NTFS file systems—you cannot specify paths on ReFS, FAT, FAT32, UDF, or other non-NTFS file system.

See Also

IFsrmRule Interface
Microsoft.Storage Namespace

Return to top