Cuemon .NET Framework
FileMapping Constructor

The content-type to associate with file extensions.
A sequence of file extensions matching the specified contentType.
Initializes a new instance of the FileMapping class.
Syntax
'Declaration
 
Public Function New( _
   ByVal contentType As String, _
   ByVal ParamArray extensions() As String _
)
public FileMapping( 
   string contentType,
   params string[] extensions
)

Parameters

contentType
The content-type to associate with file extensions.
extensions
A sequence of file extensions matching the specified contentType.
Exceptions
ExceptionDescription
System.ArgumentNullExceptioncontentType is null - or extensions is null.
Cuemon.ArgumentEmptyExceptioncontentType is empty.
System.ArgumentExceptioncontentType has zero or more than one forward slash (/).
System.ArgumentOutOfRangeExceptionextensions was not specified.
System.ArgumentOutOfRangeExceptionextensions has at least one invalid entry.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FileMapping Class
FileMapping Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback