Return the collection of namespace declarations declared by the specified assembly.
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
public static NamespaceDeclarations ForAssembly( Assembly assembly = null ) |
Visual Basic |
---|
Public Shared Function ForAssembly ( Optional assembly As Assembly = Nothing ) As NamespaceDeclarations |
Visual C++ |
---|
public: static NamespaceDeclarations^ ForAssembly( Assembly^ assembly = nullptr ) |
F# |
---|
static member ForAssembly : ?assembly : Assembly (* Defaults: let _assembly = defaultArg assembly null *) -> NamespaceDeclarations |
Parameters
- assembly (Optional)
- Type: System.Reflection..::..Assembly
The assembly to search for namespace declarations.
Return Value
Type: NamespaceDeclarationsA NamespaceDeclarations instance that can be used to iterate or to format the colleciton of namespace declarations found in assembly.
Remarks
This method finds all of the custom attributes of type NamespaceDeclarationAttribute
in assembly. If assembly is null then the method GetCallingAssembly()()()()
is used to retrieve the assembly of the method that calls this method.