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 符号值的输出类型。
- 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 符号值的输出类型。
- 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 符号值的输出类型。
- symbols
- ImmutableArray<KeyValuePair<String,Object>>
表示现有符号的 KeyValue 对的 ImmutableArray。
返回
包含VBC_VER和 TARGET 的符号数组。