AssemblyIdentity.TryParseDisplayName 方法

定义

重载

TryParseDisplayName(String, AssemblyIdentity)
TryParseDisplayName(String, AssemblyIdentity, AssemblyIdentityParts)

分析缺少的任何基本属性的显示名称填充默认值。

TryParseDisplayName(String, AssemblyIdentity)

Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
public:
 static bool TryParseDisplayName(System::String ^ displayName, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::AssemblyIdentity ^ % identity);
public static bool TryParseDisplayName (string displayName, out Microsoft.CodeAnalysis.AssemblyIdentity identity);
public static bool TryParseDisplayName (string displayName, out Microsoft.CodeAnalysis.AssemblyIdentity? identity);
static member TryParseDisplayName : string * AssemblyIdentity -> bool
Public Shared Function TryParseDisplayName (displayName As String, ByRef identity As AssemblyIdentity) As Boolean

参数

displayName
String
identity
AssemblyIdentity

返回

适用于

TryParseDisplayName(String, AssemblyIdentity, AssemblyIdentityParts)

Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs
Source:
AssemblyIdentity.DisplayName.cs

分析缺少的任何基本属性的显示名称填充默认值。

public:
 static bool TryParseDisplayName(System::String ^ displayName, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::AssemblyIdentity ^ % identity, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::AssemblyIdentityParts % parts);
public static bool TryParseDisplayName (string displayName, out Microsoft.CodeAnalysis.AssemblyIdentity identity, out Microsoft.CodeAnalysis.AssemblyIdentityParts parts);
public static bool TryParseDisplayName (string displayName, out Microsoft.CodeAnalysis.AssemblyIdentity? identity, out Microsoft.CodeAnalysis.AssemblyIdentityParts parts);
static member TryParseDisplayName : string * AssemblyIdentity * AssemblyIdentityParts -> bool
Public Shared Function TryParseDisplayName (displayName As String, ByRef identity As AssemblyIdentity, ByRef parts As AssemblyIdentityParts) As Boolean

参数

displayName
String

显示名称。

identity
AssemblyIdentity

完整的程序集标识。

parts
AssemblyIdentityParts

在显示名称中指定的程序集标识部分;如果分析失败,则为 0。

返回

如果正确分析显示名称,则为 True。

例外

displayName 为 null。

注解

简单名称必须是非空的。 部分指定的版本可能缺少内部版本号和/或修订号。 默认值为 65535。 默认区域性为中性 (CultureNameEmpty。 如果未指定公钥和令牌,则标识被视为弱标识。

适用于