共用方式為


RegistryProvider.NewPropertyDynamicParameters Method

Definition

Gives the provider a chance to attach additional parameters to the new-itemproperty cmdlet.

public:
 virtual System::Object ^ NewPropertyDynamicParameters(System::String ^ path, System::String ^ propertyName, System::String ^ type, System::Object ^ value);
public:
 Platform::Object ^ NewPropertyDynamicParameters(Platform::String ^ path, Platform::String ^ propertyName, Platform::String ^ type, Platform::Object ^ value);
winrt::Windows::Foundation::IInspectable NewPropertyDynamicParameters(std::wstring const & path, std::wstring const & propertyName, std::wstring const & type, winrt::Windows::Foundation::IInspectable const & value);
public object NewPropertyDynamicParameters (string path, string propertyName, string type, object value);
override this.NewPropertyDynamicParameters : string * string * string * obj -> obj
Public Function NewPropertyDynamicParameters (path As String, propertyName As String, type 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.

propertyName
String

The name of the property that should be created.

type
String

The type of the property that should be created.

value
Object

The new value of the property that should be created.

Returns

An object that has properties and fields decorated with parsing attributes similar to a cmdlet class.

Implements

Applies to