NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ModuleBuilder.DefineResource (String, String, ResourceAttributes)

Defines the named managed embedded resource with the given attributes that is to be stored in this module.

[Visual Basic]
Overloads Public Function DefineResource( _
   ByVal name As String, _
   ByVal description As String, _
   ByVal attribute As ResourceAttributes _
) As ResourceWriter
[C#]
public ResourceWriter DefineResource(
   string name,
   string description,
   ResourceAttributes attribute
);
[C++]
public: ResourceWriter* DefineResource(
   String* name,
   String* description,
   ResourceAttributes attribute
);
[JScript]
public function DefineResource(
   name : String,
   description : String,
   attribute : ResourceAttributes
) : ResourceWriter;

Parameters

name
The name of the resource.
description
The description of the resource.
attribute
[To be supplied.]

Return Value

Returns a resource writer for the defined resource.

Exceptions

Exception Type Condition
ArgumentNullException if name is null
InvalidOperationException if this module is transient or if the containing assembly is not persistable

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace | ModuleBuilder.DefineResource Overload List