A Sandcastle Documented Class Library

# IAppResourceService StoreStaticResource Method

Stores 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

    StaticResourceInfo StoreStaticResource(
    	StaticResourceInfo staticResourceInfo,
    	Stream inputStream
    )

    Function StoreStaticResource (
    	staticResourceInfo As StaticResourceInfo,
    	inputStream As Stream
    ) As StaticResourceInfo

    StaticResourceInfo^ StoreStaticResource(
    	StaticResourceInfo^ staticResourceInfo,
    	Stream^ inputStream
    )

    abstract StoreStaticResource :
            staticResourceInfo : StaticResourceInfo *
            inputStream : Stream -> StaticResourceInfo

#### Parameters

staticResourceInfo
  Type: Dundas.BI.AppResources
  StaticResourceInfo
  The static resource information.
inputStream
  Type: System.IO
  Stream
  The input stream.

#### Return Value

Type: StaticResourceInfo
The StaticResourceInfo of the stored resource.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | staticResourceInfo is . -or- inputStream is .
DuplicateItemException | Another static resource with the same name but different ID already exists.
InvalidOperationException | Data exceeds the maximum configured static resource size.
NoPrivilegeException | The caller does not have administrative privileges.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IAppResourceService Interface
Dundas.BI.AppResources Namespace
CoreConfigSettingIds
MaxStaticResourceFileSize