RulesException.GetObjectData Method
Sets the SerializationInfo with information about the exception.
Spazio dei nomi: Microsoft.SqlServer.NotificationServices.Rules
Assembly : Microsoft.SqlServer.NotificationServices.Rules (in microsoft.sqlserver.notificationservices.rules.dll)
Sintassi
'Dichiarazione
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter:=True)> _
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)]
public override void GetObjectData (
SerializationInfo info,
StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter=true)]
public:
virtual void GetObjectData (
SerializationInfo^ info,
StreamingContext context
) override
/** @attribute SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true) */
public void GetObjectData (
SerializationInfo info,
StreamingContext context
)
public override function GetObjectData (
info : SerializationInfo,
context : StreamingContext
)
Parametri
- info
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
The StreamingContext that contains contextual information about the source or destination.
Osservazioni
GetObjectData sets a SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
RulesException Class
RulesException Members
Microsoft.SqlServer.NotificationServices.Rules Namespace