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!

ResourceSet.CreateWriter

Creates a resource writer for the specified file. The type of the resource writer to be created is determined by GetDefaultWriter. If the file already exists, it will be overwritten.

[Visual Basic]
Overridable Public Function CreateWriter( _
   ByVal fileName As String _
) As IResourceWriter
[C#]
public virtual IResourceWriter CreateWriter(
   string fileName
);
[C++]
public: virtual IResourceWriter* CreateWriter(
   String* fileName
);
[JScript]
public function CreateWriter(
   fileName : String
) : IResourceWriter;

Parameters

fileName
A relative or absolute path for the resource file for which a writer is to be created.

Return Value

Returns a resource writer for the specified file.

Exceptions

Exception Type Condition
ArgumentException If fileName is either a null reference (in Visual Basic Nothing) or an empty string.
SecurityException If the caller does not have the appropriate FileIOPermission.

See Also

ResourceSet Class | ResourceSet Members | System.Resources Namespace