Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSNoteProperty Constructor

Creates a new instance of the PSNoteProperty class with the name and value of the property.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim name As String
Dim value As Object

Dim instance As New PSNoteProperty(name, value)

public PSNoteProperty (
	string name,
	Object value
)
public PSNoteProperty (
	String name, 
	Object value
)
public function PSNoteProperty (
	name : String, 
	value : Object
)

Parameters

name

The name of the note property.

value

The value of the note property.

Exception typeCondition
ArgumentException

The name parameter is null or empty.

A note property is a property that has a name/value pairing, such as a variable property. For more information about note properties in addition to other property types defined by the extended type system (ETS), see ETS Properties. For more information about the extended type system (ETS), see Windows PowerShell Extended Type System (ETS).

Although it is possible to derive from this class, there is no established scenario for doing this and any attempt to do so might result in unexpected behavior.


 

Target Platforms


Show:
© 2015 Microsoft