PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddPredefinedPreprocessorSymbols(OutputKind, IEnumerable<KeyValuePair<String,Object>>) |
如果尚未包含預先處理器符號,請將預先定義的預處理器符號VBC_VER和 TARGET 新增至指定的預處理器符號清單。 |
AddPredefinedPreprocessorSymbols(OutputKind, KeyValuePair<String,Object>[]) |
如果尚未包含預先處理器符號,請將預先定義的預處理器符號VBC_VER和 TARGET 新增至指定的預處理器符號清單。 |
AddPredefinedPreprocessorSymbols(OutputKind, ImmutableArray<KeyValuePair<String,Object>>) |
如果尚未包含預先處理器符號,請將預先定義的預處理器符號VBC_VER和 TARGET 新增至指定的預處理器符號清單。 |
AddPredefinedPreprocessorSymbols(OutputKind, IEnumerable<KeyValuePair<String,Object>>)
如果尚未包含預先處理器符號,請將預先定義的預處理器符號VBC_VER和 TARGET 新增至指定的預處理器符號清單。
public:
static System::Collections::Immutable::ImmutableArray<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> AddPredefinedPreprocessorSymbols(Microsoft::CodeAnalysis::OutputKind kind, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ symbols);
public static System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string,object>> AddPredefinedPreprocessorSymbols (Microsoft.CodeAnalysis.OutputKind kind, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> symbols);
static member AddPredefinedPreprocessorSymbols : Microsoft.CodeAnalysis.OutputKind * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string, obj>>
Public Function AddPredefinedPreprocessorSymbols (kind As OutputKind, symbols As IEnumerable(Of KeyValuePair(Of String, Object))) As ImmutableArray(Of KeyValuePair(Of String, Object))
參數
- kind
- OutputKind
要從中衍生 TARGET 符號值的 Output 種類。
- symbols
- IEnumerable<KeyValuePair<String,Object>>
代表現有符號的 KeyValue 配對集合。
傳回
包含 VBC_VER 和 TARGET 的符號陣列。
適用於
AddPredefinedPreprocessorSymbols(OutputKind, KeyValuePair<String,Object>[])
如果尚未包含預先處理器符號,請將預先定義的預處理器符號VBC_VER和 TARGET 新增至指定的預處理器符號清單。
public:
static System::Collections::Immutable::ImmutableArray<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> AddPredefinedPreprocessorSymbols(Microsoft::CodeAnalysis::OutputKind kind, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ symbols);
public static System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string,object>> AddPredefinedPreprocessorSymbols (Microsoft.CodeAnalysis.OutputKind kind, params System.Collections.Generic.KeyValuePair<string,object>[] symbols);
static member AddPredefinedPreprocessorSymbols : Microsoft.CodeAnalysis.OutputKind * System.Collections.Generic.KeyValuePair<string, obj>[] -> System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string, obj>>
Public Function AddPredefinedPreprocessorSymbols (kind As OutputKind, ParamArray symbols As KeyValuePair(Of String, Object)()) As ImmutableArray(Of KeyValuePair(Of String, Object))
參數
- kind
- OutputKind
要從中衍生 TARGET 符號值的 Output 種類。
- symbols
- KeyValuePair<String,Object>[]
代表現有符號的 KeyValue 配對參數陣列。
傳回
包含 VBC_VER 和 TARGET 的符號陣列。
適用於
AddPredefinedPreprocessorSymbols(OutputKind, ImmutableArray<KeyValuePair<String,Object>>)
如果尚未包含預先處理器符號,請將預先定義的預處理器符號VBC_VER和 TARGET 新增至指定的預處理器符號清單。
public:
static System::Collections::Immutable::ImmutableArray<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> AddPredefinedPreprocessorSymbols(Microsoft::CodeAnalysis::OutputKind kind, System::Collections::Immutable::ImmutableArray<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> symbols);
public static System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string,object>> AddPredefinedPreprocessorSymbols (Microsoft.CodeAnalysis.OutputKind kind, System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string,object>> symbols);
static member AddPredefinedPreprocessorSymbols : Microsoft.CodeAnalysis.OutputKind * System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Collections.Immutable.ImmutableArray<System.Collections.Generic.KeyValuePair<string, obj>>
Public Function AddPredefinedPreprocessorSymbols (kind As OutputKind, symbols As ImmutableArray(Of KeyValuePair(Of String, Object))) As ImmutableArray(Of KeyValuePair(Of String, Object))
參數
- kind
- OutputKind
要從中衍生 TARGET 符號值的 Output 種類。
- symbols
- ImmutableArray<KeyValuePair<String,Object>>
代表現有符號之 KeyValue 配對的 ImmutableArray。
傳回
包含 VBC_VER 和 TARGET 的符號陣列。