Méthode WindowsClaimsIdentity.GetObjectData
Populates the specified T:System.Runtime.Serialization.SerializationInfo with the serialization data for the WindowsClaimsIdentity.
Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)
Utilisation
Dim info As SerializationInfo Dim context As StreamingContext Me.GetObjectData(info, context)
Syntaxe
'Déclaration
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags:=SecurityPermissionFlag.SerializationFormatter)> _
Protected Overridable Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)]
protected virtual void GetObjectData (
SerializationInfo info,
StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags=SecurityPermissionFlag::SerializationFormatter)]
protected:
virtual void GetObjectData (
SerializationInfo^ info,
StreamingContext context
)
/** @attribute SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter) */
protected void GetObjectData (
SerializationInfo info,
StreamingContext context
)
protected function GetObjectData (
info : SerializationInfo,
context : StreamingContext
)
Paramètres
- info
The serialization information stream to write to. Satisfies ISerializable contract.
- context
Context for serialization. Can be null.
Exceptions
Type d'exception | Condition |
---|
Cohérence de thread
Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.
Plateformes
Plateformes de développement
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Voir aussi
Référence
Classe WindowsClaimsIdentity
Membres WindowsClaimsIdentity
Espace de noms Microsoft.IdentityModel.Claims