Compartilhar via


SPCmdlet.ConfirmationMessage Property

Gets or sets a message that is used to prompt the user for confirmation.

Namespace:  Microsoft.SharePoint.PowerShell
Assembly:  Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)

Syntax

'Declaration
Protected Overridable Property ConfirmationMessage As String
    Get
    Set
'Usage
Dim value As String

value = Me.ConfirmationMessage

Me.ConfirmationMessage = value
protected virtual string ConfirmationMessage { get; set; }

Property Value

Type: System.String
Returns a string that is the prompt message. By default, this property is a null reference (Nothing in Visual Basic).

Remarks

The message should indicate both the action and the identity. A given cmdlet may have none or many confirmation messages, depending on the record that it is processing.

You must use the InternalDispose() method to provide clean-up code to dispose of any objects you created when using this method.

See Also

Reference

SPCmdlet Class

SPCmdlet Members

Microsoft.SharePoint.PowerShell Namespace