FileExtensionAttribute Constructor
Initializes a new instance of the FileExtensionAttribute.
Namespace: Microsoft.VisualStudio.Utilities
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Syntax
'Declaração
Public Sub New ( _
fileExtension As String _
)
public FileExtensionAttribute(
string fileExtension
)
public:
FileExtensionAttribute(
String^ fileExtension
)
new :
fileExtension:string -> FileExtensionAttribute
public function FileExtensionAttribute(
fileExtension : String
)
Parameters
- fileExtension
Type: System.String
The file extension.
Examples
For an example of how to use this attribute, see Walkthrough: Linking a Content Type to a File Name Extension.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.