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