CompilationUnitManager.Compilation.OpenDirectives(String, String) 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.
Given ID sourceFile and namespace nsName,
returns the names and corresponding short form (if any) of all opened namespaces for the (part of the) namespace in that file.
public System.Collections.Generic.IEnumerable<(string, string?)> OpenDirectives (string sourceFile, string nsName);
member this.OpenDirectives : string * string -> seq<ValueTuple<string, string>>
Public Function OpenDirectives (sourceFile As String, nsName As String) As IEnumerable(Of ValueTuple(Of String, String))
Parameters
- sourceFile
- String
- nsName
- String
Returns
The names and corresponding short forms of the opened namespaces.
Remarks
Returns an empty sequence if sourceFile and/or nsName do not exist in the compilation.