Partager via


IPropertyCmdletProvider.GetPropertyDynamicParameters Method

Definition

Gives the provider an opportunity to attach additional parameters to the get-itemproperty cmdlet.

public:
 System::Object ^ GetPropertyDynamicParameters(System::String ^ path, System::Collections::ObjectModel::Collection<System::String ^> ^ providerSpecificPickList);
public object GetPropertyDynamicParameters (string path, System.Collections.ObjectModel.Collection<string> providerSpecificPickList);
public object? GetPropertyDynamicParameters (string path, System.Collections.ObjectModel.Collection<string>? providerSpecificPickList);
abstract member GetPropertyDynamicParameters : string * System.Collections.ObjectModel.Collection<string> -> obj
Public Function GetPropertyDynamicParameters (path As String, providerSpecificPickList As Collection(Of String)) As Object

Parameters

path
String

If the path was specified on the command line, this is the path to the item to get the dynamic parameters for.

providerSpecificPickList
Collection<String>

A list of properties that should be retrieved. If this parameter is null or empty, all properties should be retrieved.

Returns

Overrides of this method should return an object that has properties and fields decorated with parsing attributes similar to a cmdlet class or a RuntimeDefinedParameterDictionary.

The default implementation returns null. (no additional parameters)

Applies to