VersioningHelper.MakeVersionSafeName Method (String, ResourceScope, ResourceScope)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Runtime.Versioning
Assembly:  mscorlib (in mscorlib.dll)

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

Parameters

name
Type: System.String

The name of the resource.

from
Type: System.Runtime.Versioning.ResourceScope

The scope of the resource.

to
Type: System.Runtime.Versioning.ResourceScope

The desired resource consumption scope.

Return Value

Type: System.String

A version-safe name.

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

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: