Bagikan melalui


ItemCmdletProvider.SetItemDynamicParameters(String, Object) Method

Definition

Gives the provider an opportunity to attach additional parameters to the set-item cmdlet.

protected:
 virtual System::Object ^ SetItemDynamicParameters(System::String ^ path, System::Object ^ value);
protected:
 virtual Platform::Object ^ SetItemDynamicParameters(Platform::String ^ path, Platform::Object ^ value);
 virtual winrt::Windows::Foundation::IInspectable SetItemDynamicParameters(std::wstring const & path, winrt::Windows::Foundation::IInspectable const & value);
protected virtual object SetItemDynamicParameters (string path, object value);
abstract member SetItemDynamicParameters : string * obj -> obj
override this.SetItemDynamicParameters : string * obj -> obj
Protected Overridable Function SetItemDynamicParameters (path As String, value As Object) 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.

value
Object

The value of the item specified by the path.

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