Snippets.Compile(String, TargetCapability, ITaskReporter) Method
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.
C#
public System.Threading.Tasks.Task<Microsoft.Quantum.IQSharp.Snippet> Compile (string code, Microsoft.Quantum.QsCompiler.TargetCapability? capability = default, Microsoft.Quantum.IQSharp.ITaskReporter? parent = default);
abstract member Compile : string * Microsoft.Quantum.QsCompiler.TargetCapability * Microsoft.Quantum.IQSharp.ITaskReporter -> System.Threading.Tasks.Task<Microsoft.Quantum.IQSharp.Snippet>
override this.Compile : string * Microsoft.Quantum.QsCompiler.TargetCapability * Microsoft.Quantum.IQSharp.ITaskReporter -> System.Threading.Tasks.Task<Microsoft.Quantum.IQSharp.Snippet>
Public Function Compile (code As String, Optional capability As TargetCapability = Nothing, Optional parent As ITaskReporter = Nothing) As Task(Of Snippet)
- code
- System.String
- capability
- TargetCapability
- parent
- ITaskReporter
System.Threading.Tasks.Task<Snippet>
Производ | Верзије |
---|---|
Microsoft Quantum Development Kit | Latest |