System.Runtime.Versioning.VersioningHelper.MakeVersionSafeName Method

Returns a version-safe name based on the specified resource name and the intended resource consumption source.

Syntax

public static string MakeVersionSafeName (string name, ResourceScope from, ResourceScope to)

Parameters

name
The name of the resource.
from
The scope of the resource.
to
The desired resource consumption scope.

Returns

A version-safe name.

Remarks

The original name is returned with a scope related suffix. The suffix may include the process identity, the current AppDomain identity, or both.

Requirements

Namespace: System.Runtime.Versioning
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0