CompilationUnitManager.Compilation.OpenDirectives(String, String) Method

Definition

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

IEnumerable<ValueTuple<String,String>>

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.

Applies to