Επεξεργασία

Κοινή χρήση μέσω


VersioningHelper.MakeVersionSafeName Method

Definition

Provides a version-safe name.

Overloads

MakeVersionSafeName(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.

MakeVersionSafeName(String, ResourceScope, ResourceScope, Type)

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, the intended resource consumption scope, and the type using the resource.

MakeVersionSafeName(String, ResourceScope, ResourceScope)

Source:
VersioningHelper.cs
Source:
VersioningHelper.cs
Source:
VersioningHelper.cs

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

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

public:
 static System::String ^ MakeVersionSafeName(System::String ^ name, System::Runtime::Versioning::ResourceScope from, System::Runtime::Versioning::ResourceScope to);
public static string MakeVersionSafeName (string? name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to);
public static string MakeVersionSafeName (string name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to);
static member MakeVersionSafeName : string * System.Runtime.Versioning.ResourceScope * System.Runtime.Versioning.ResourceScope -> string
Public Shared Function MakeVersionSafeName (name As String, from As ResourceScope, to As ResourceScope) As String

Parameters

name
String

The name of the resource.

from
ResourceScope

The scope of the resource.

to
ResourceScope

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.

Applies to

MakeVersionSafeName(String, ResourceScope, ResourceScope, Type)

Source:
VersioningHelper.cs
Source:
VersioningHelper.cs
Source:
VersioningHelper.cs

Returns a version-safe name based on the specified resource name, the intended resource consumption scope, and the type using the resource.

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

public:
 static System::String ^ MakeVersionSafeName(System::String ^ name, System::Runtime::Versioning::ResourceScope from, System::Runtime::Versioning::ResourceScope to, Type ^ type);
public static string MakeVersionSafeName (string? name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to, Type? type);
public static string MakeVersionSafeName (string name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to, Type type);
static member MakeVersionSafeName : string * System.Runtime.Versioning.ResourceScope * System.Runtime.Versioning.ResourceScope * Type -> string
Public Shared Function MakeVersionSafeName (name As String, from As ResourceScope, to As ResourceScope, type As Type) As String

Parameters

name
String

The name of the resource.

from
ResourceScope

The beginning of the scope range.

to
ResourceScope

The end of the scope range.

type
Type

The Type of the resource.

Returns

A version-safe name.

Exceptions

The values for from and to are invalid. The resource type in the ResourceScope enumeration is going from a more restrictive resource type to a more general resource type.

type is null.

Remarks

The original name is returned with a scope related suffix.

Applies to