VersioningHelper.MakeVersionSafeName 方法

定义

提供版本安全的名称。

重载

名称 说明
MakeVersionSafeName(String, ResourceScope, ResourceScope)

此 API 支持产品基础结构,不能在代码中直接使用。

根据指定的资源名称和预期的资源消耗源返回版本安全名称。

MakeVersionSafeName(String, ResourceScope, ResourceScope, Type)

此 API 支持产品基础结构,不能在代码中直接使用。

根据指定的资源名称、预期的资源消耗范围以及使用该资源的类型返回版本安全名称。

MakeVersionSafeName(String, ResourceScope, ResourceScope)

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

根据指定的资源名称和预期的资源消耗源返回版本安全名称。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

name
String

资源的名称。

from
ResourceScope

资源的范围。

to
ResourceScope

所需的资源消耗范围。

返回

版本安全名称。

注解

原始名称使用与范围相关的后缀返回。 后缀可能包括进程标识、当前 AppDomain 标识或两者兼有。

适用于

MakeVersionSafeName(String, ResourceScope, ResourceScope, Type)

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

根据指定的资源名称、预期的资源消耗范围以及使用该资源的类型返回版本安全名称。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

name
String

资源的名称。

from
ResourceScope

范围范围的开头。

to
ResourceScope

范围范围的末尾。

type
Type

资源 Type

返回

版本安全名称。

例外

fromto值无效。 枚举中的 ResourceScope 资源类型从更严格的资源类型转换为更常规的资源类型。

typenull

注解

原始名称使用与范围相关的后缀返回。

适用于