'宣言 Public Overloads Sub SavePreset( _ ByVal textWriter As TextWriter, _ ByVal name As String, _ ByVal desc As String, _ ByVal presetType As PresetType _ )
public void SavePreset( TextWriter textWriter, string name, string desc, PresetType presetType )
Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter(Me.Page.MapPath("./MyPreset.xml")) Me.WebControl1.SavePreset(sw, "My Preset", "This is a description of my preset", Infragistics.WebUI.PresetType.All) sw.Close()
System.IO.StreamWriter sw = new System.IO.StreamWriter(this.Page.MapPath("./MyPreset.xml")); this.WebControl1.SavePreset(sw, "My Preset", "This is a description of my preset", Infragistics.WebUI.PresetType.All); sw.Close();