CompilationUnit.GetOpenDirectives(String) Method

Definition

Returns a look-up that contains the names of all namespaces and the corresponding short hand, if any, imported within a certain source file for nsName.

public System.Linq.ILookup<string,(string, string?)> GetOpenDirectives (string nsName);
member this.GetOpenDirectives : string -> System.Linq.ILookup<string, ValueTuple<string, string>>
Public Function GetOpenDirectives (nsName As String) As ILookup(Of String, ValueTuple(Of String, String))

Parameters

nsName
String

Returns

ILookup<String,ValueTuple<String,String>>

Exceptions

No namespace exists with name nsName.

Applies to