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;
Returns a resource writer for the specified file.
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. |
ResourceSet Class | ResourceSet Members | System.Resources Namespace