GrainId.TryParse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TryParse(String, GrainId) |
試著從字串剖析 GrainId 。 |
TryParse(ReadOnlySpan<Char>, IFormatProvider, GrainId) |
試著從範圍剖析 GrainId 。 |
TryParse(String, IFormatProvider, GrainId) |
試著從字串剖析 GrainId 。 |
TryParse(String, GrainId)
試著從字串剖析 GrainId 。
public static bool TryParse (string? value, out Orleans.Runtime.GrainId result);
static member TryParse : string * GrainId -> bool
Public Shared Function TryParse (value As String, ByRef result As GrainId) As Boolean
參數
- value
- String
- result
- GrainId
傳回
true
如果已剖析有效的 GrainId ,則為 。
false
否則
適用於
TryParse(ReadOnlySpan<Char>, IFormatProvider, GrainId)
試著從範圍剖析 GrainId 。
public static bool TryParse (ReadOnlySpan<char> value, IFormatProvider? provider, out Orleans.Runtime.GrainId result);
static member TryParse : ReadOnlySpan<char> * IFormatProvider * GrainId -> bool
Public Shared Function TryParse (value As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As GrainId) As Boolean
參數
- value
- ReadOnlySpan<Char>
- provider
- IFormatProvider
- result
- GrainId
傳回
true
如果已剖析有效的 GrainId ,則為 。
false
否則
適用於
TryParse(String, IFormatProvider, GrainId)
試著從字串剖析 GrainId 。
public static bool TryParse (string? value, IFormatProvider? provider, out Orleans.Runtime.GrainId result);
static member TryParse : string * IFormatProvider * GrainId -> bool
Public Shared Function TryParse (value As String, provider As IFormatProvider, ByRef result As GrainId) As Boolean
參數
- value
- String
- provider
- IFormatProvider
- result
- GrainId
傳回
true
如果已剖析有效的 GrainId ,則為 。
false
否則