ICSharpHelper.Identifier 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Identifier(String, ICollection<String>) |
從範圍唯一的指定字串產生有效的 C# 識別碼。 |
Identifier(String, ICollection<String>, Nullable<Boolean>) |
從範圍唯一的指定字串產生有效的 C# 識別碼。 |
Identifier(String, ICollection<String>)
從範圍唯一的指定字串產生有效的 C# 識別碼。
public string Identifier (string name, System.Collections.Generic.ICollection<string> scope = default);
abstract member Identifier : string * System.Collections.Generic.ICollection<string> -> string
Public Function Identifier (name As String, Optional scope As ICollection(Of String) = Nothing) As String
參數
- name
- String
基底識別碼名稱。
- scope
- ICollection<String>
範圍內識別碼的清單。
傳回
識別碼。
適用於
Identifier(String, ICollection<String>, Nullable<Boolean>)
從範圍唯一的指定字串產生有效的 C# 識別碼。
public string Identifier (string name, System.Collections.Generic.ICollection<string>? scope = default, bool? capitalize = default);
abstract member Identifier : string * System.Collections.Generic.ICollection<string> * Nullable<bool> -> string
Public Function Identifier (name As String, Optional scope As ICollection(Of String) = Nothing, Optional capitalize As Nullable(Of Boolean) = Nothing) As String
參數
- name
- String
基底識別碼名稱。
- scope
- ICollection<String>
範圍內識別碼的清單。
傳回
識別碼。