Partager via


FileSystemProvider.ClearProperty(String, Collection<String>) Method

Definition

Clears the specified properties on the item at the given path. The File System provider supports only the "Attributes" property.

public:
 virtual void ClearProperty(System::String ^ path, System::Collections::ObjectModel::Collection<System::String ^> ^ propertiesToClear);
public void ClearProperty (string path, System.Collections.ObjectModel.Collection<string> propertiesToClear);
override this.ClearProperty : string * System.Collections.ObjectModel.Collection<string> -> unit
abstract member ClearProperty : string * System.Collections.ObjectModel.Collection<string> -> unit
override this.ClearProperty : string * System.Collections.ObjectModel.Collection<string> -> unit
Public Sub ClearProperty (path As String, propertiesToClear As Collection(Of String))

Parameters

path
String

The path of the item on which to clear the properties.

propertiesToClear
Collection<String>

A collection of the names of the properties to clear. The File System provider supports clearing only the "Attributes" property.

Implements

Exceptions

Path is null or empty.

propertiesToClear is null or count is zero.

Applies to