Compartilhar via


Método SqlCeInvalidDatabaseFormatException.GetObjectData

Esse membro tem um atributo SecurityCriticalAttribute, que o restringe a uso interno pela biblioteca de classes do .NET Framework for Silverlight. O código do aplicativo que usa qualquer membro desse tipo gera um MethodAccessException.

[SEGURANÇA CRÍTICA]

Popula um SerializationInfo com os dados necessários para serializar o objeto.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (em System.Data.SqlServerCe.dll)

Sintaxe

'Declaração
<SecurityCriticalAttribute> _
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.SerializationFormatter)> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'Uso
Dim instance As SqlCeInvalidDatabaseFormatException
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)
[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::SerializationFormatter)]
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) override
[<SecurityCriticalAttribute>]
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)>]
abstract GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
[<SecurityCriticalAttribute>]
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)>]
override GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
public override function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)

Parâmetros

Implementa

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)

Consulte também

Referência

SqlCeInvalidDatabaseFormatException Classe

Namespace System.Data.SqlServerCe