DataObject.SetFileDropList(StringCollection) Metod

Definition

Lagrar FileDrop data i det här dataobjektet. Den borttagna fillistan anges som en strängsamling.

public:
 void SetFileDropList(System::Collections::Specialized::StringCollection ^ fileDropList);
public void SetFileDropList(System.Collections.Specialized.StringCollection fileDropList);
member this.SetFileDropList : System.Collections.Specialized.StringCollection -> unit
Public Sub SetFileDropList (fileDropList As StringCollection)

Parametrar

fileDropList
StringCollection

En strängsamling som innehåller listan över borttagna filer som ska lagras i dataobjektet.

Undantag

fileDropList är null.

fileDropList innehåller noll strängar, eller så går det inte att matcha den fullständiga sökvägen till filen som anges i listan.

Kommentarer

Den här metoden lägger till data med automatisk konvertering aktiverat (samma som anrop SetData(String, Object, Boolean) med autoConvert inställt på true).

Gäller för

Se även