PasswordWriteOnlyException Class

Definition

The exception that is thrown when a replication agent password property is accessed.

public ref class PasswordWriteOnlyException : Microsoft::SqlServer::Replication::ReplicationAgentException
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public class PasswordWriteOnlyException : Microsoft.SqlServer.Replication.ReplicationAgentException
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type PasswordWriteOnlyException = class
    inherit ReplicationAgentException
Public Class PasswordWriteOnlyException
Inherits ReplicationAgentException
Inheritance
PasswordWriteOnlyException
Attributes

Remarks

Replication agent password properties are read/write. To protect passwords, when accessing a password property, the PasswordWriteOnlyException is thrown instead of the actual password being returned.

Constructors

PasswordWriteOnlyException()

Creates a new instance of the PasswordWriteOnlyException class.

PasswordWriteOnlyException(SerializationInfo, StreamingContext)

Creates a new instance of the PasswordWriteOnlyException class with serialized data.

PasswordWriteOnlyException(String)

Creates a new instance of the PasswordWriteOnlyException class with a specified error message.

PasswordWriteOnlyException(String, Exception)

Creates a new instance of the PasswordWriteOnlyException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

MessageCode

Gets the error code of the underlying error.

(Inherited from ReplicationAgentException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the specified SerializationInfo with information about the exception.

(Inherited from ReplicationAgentException)

Applies to