VisualBasicCommandLineParser.ParseConditionalCompilationSymbols Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses Conditional Compilations Symbols. Given the string of conditional compilation symbols from the project system, parse them and merge them with an IReadOnlyDictionary ready to be given to the compilation.
public static System.Collections.Generic.IReadOnlyDictionary<string,object> ParseConditionalCompilationSymbols (string symbolList, out System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> diagnostics, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> symbols = default);
static member ParseConditionalCompilationSymbols : string * seq * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Collections.Generic.IReadOnlyDictionary<string, obj>
Public Shared Function ParseConditionalCompilationSymbols (symbolList As String, ByRef diagnostics As IEnumerable(Of Diagnostic), Optional symbols As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As IReadOnlyDictionary(Of String, Object)
Parameters
- symbolList
- String
The conditional compilation string. This takes the form of a comma delimited list of NAME=Value pairs, where Value may be a quoted string or integer.
- diagnostics
- IEnumerable<Diagnostic>
A collection of reported diagnostics during parsing of symbolList, can be empty IEnumerable.
- symbols
- IEnumerable<KeyValuePair<String,Object>>
A collection representing existing symbols. Symbols parsed from symbolList
will be merged with this dictionary.
Returns
Exceptions
Invalid value provided.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈