A Sandcastle Documented Class Library

# IAppResourceService GetStaticResource Method (String, StaticResourceInfo , Boolean)

Gets the static resource.

Namespace: Dundas.BI.AppResources
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Stream GetStaticResource(
    	string name,
    	out StaticResourceInfo staticResourceInfo,
    	bool throwOnNotFound
    )

    Function GetStaticResource (
    	name As String,
    	<OutAttribute> ByRef staticResourceInfo As StaticResourceInfo,
    	throwOnNotFound As Boolean
    ) As Stream

    Stream^ GetStaticResource(
    	String^ name,
    	[OutAttribute] StaticResourceInfo^% staticResourceInfo,
    	bool throwOnNotFound
    )

    abstract GetStaticResource :
            name : string *
            staticResourceInfo : StaticResourceInfo byref *
            throwOnNotFound : bool -> Stream

#### Parameters

name
  Type: System
  String
  The static resource name.
staticResourceInfo
  Type: Dundas.BI.AppResources
  StaticResourceInfo
  When this method returns, the output parameter contains an StaticResourceInfo of the stored resource.
throwOnNotFound
  Type: System
  Boolean
  Throws NotFoundException if resource is not found and parameter is set to
  , otherwise returns
  .

#### Return Value

Type: Stream
The static resource as a Stream or
if not found.
Exceptions

Exception | Condition
--- | ---
ArgumentException | staticResourceInfo is not a valid non-empty string.
NotFoundException | The static resource not found. This exception is only thrown if throwOnNotFound is .

See Also

#### Reference

IAppResourceService Interface
GetStaticResource Overload
Dundas.BI.AppResources Namespace