IFsrmPropertyBag.RelativeNamespaceRoot Property

 

Retrieves the relative path of the namespace root under which the file is being evaluated.

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

Syntax

string RelativeNamespaceRoot { get; }
property String^ RelativeNamespaceRoot {
    String^ get();
}
abstract RelativeNamespaceRoot : string with get
ReadOnly Property RelativeNamespaceRoot As String

Property Value

Type: System.String

Returns a String containing the relative path of the namespace root under which the file is being evaluated.

Remarks

This property is only valid under an evaluation context. Classifier modules that retrieve this property will get the namespace root of the rule under which the file is being evaluated. Because storage modules do not have evaluation contexts, they must not retrieve this property.

The relative namespace root is the path of the namespace root relative to the volume root. For example, if the path to the file is "P:\folder1\subfolderA\test.txt", and the file is being evaluated by a rule with a namespace root of "P:\folder1", then the relative namespace root would be "\folder1\". Note that the rule's namespace root determines the relative namespace root.

The caller should not expect that the relative namespace root returned will consistently have leading or trailing backslashes.

See Also

IFsrmPropertyBag Interface
Microsoft.Storage Namespace

Return to top