2
<Template author="Siegfried Pammer" version="1.0.0">
5
name = "${res:Templates.File.Exception.Name}"
6
icon = "VBNet.File.NewClass"
8
defaultname = "Exception.vb"
11
<Description>${res:Templates.File.Exception.Description}</Description>
14
Special new file templates:
15
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
16
${FullName} -> Full generated path name
17
${FileName} -> File name with extension
18
${FileNameWithoutExtension} -> File name without extension
19
${Extension} -> Extension in the form ".vb"
20
${Path} -> Full path of the file
25
localizedName = "${res:Templates.File.Properties.IsSealed}"
26
type = "System.Boolean"
27
defaultValue = "False"
28
category = "${res:Templates.File.Properties.ContextCategory}"
29
description = "${res:Templates.File.Properties.IsSealed.Description}"
34
<File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
36
Imports System.Runtime.Serialization
38
Namespace ${StandardNamespace}
40
''' Desctiption of ${ClassName}.
42
Public Class ${ClassName}
44
Implements ISerializable
49
Public Sub New(message As String)
53
Public Sub New(message As String, innerException As Exception)
54
MyBase.New(message, innerException)
57
' This constructor is needed for serialization.
58
Protected Sub New(info As SerializationInfo, context As StreamingContext)
59
MyBase.New(info, context)
62
End Namespace]]></File>