Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / DisplayClaim.cs / 1 / DisplayClaim.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections.Generic; using System.IO; // // This class represents a single claim in the display token // class DisplayClaim { string m_name; Listm_value; string m_description; string m_uri; public string Name { get { return m_name; } set { m_name = value; } } public string Id { get { return m_uri; } } public DisplayClaim( BinaryReader reader ) { Deserialize( reader ); } // // Summary // CTOR // // Parameters // name - Display name of the claim // value - value of the claim // description - description of the claims // uri - claim uri // public DisplayClaim( string name, List value, string description, string uri ) { m_name = name; m_value = value; m_description = description; m_uri = uri; } // // Summary // Serialize the display claim // // Parameter // The writer to which the serialized data is written. // public void Serialize( BinaryWriter writer ) { Utility.SerializeString( writer, m_name ); writer.Write( ( UInt32 )m_value.Count ); foreach( string val in m_value ) { Utility.SerializeString( writer, val ); } Utility.SerializeString( writer, m_description ); Utility.SerializeString( writer, m_uri ); } // // Summary // Deserialize the display claim // // Parameter // The reader from which the serialized data is read. // public void Deserialize( BinaryReader reader ) { m_name = Utility.DeserializeString( reader ); UInt32 count = reader.ReadUInt32(); for( UInt32 i = 0; i < count; i++ ) { m_value.Add( Utility.DeserializeString( reader ) ); } m_description = Utility.DeserializeString( reader ); m_uri = Utility.DeserializeString( reader ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WeakRefEnumerator.cs
- MsmqElementBase.cs
- TextFragmentEngine.cs
- BamlStream.cs
- WorkflowInstanceRecord.cs
- UpdateExpressionVisitor.cs
- AuthenticationConfig.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- EventLogger.cs
- DecimalFormatter.cs
- ResXFileRef.cs
- SerializerDescriptor.cs
- safemediahandle.cs
- FixedDSBuilder.cs
- ConstraintCollection.cs
- CqlIdentifiers.cs
- RepeaterItemEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- BitmapEffectInput.cs
- _NegoStream.cs
- Rectangle.cs
- TriggerBase.cs
- DecoderFallback.cs
- Operator.cs
- TableFieldsEditor.cs
- SqlSelectStatement.cs
- CollectionCodeDomSerializer.cs
- SplitterCancelEvent.cs
- SyndicationElementExtension.cs
- RtfToXamlReader.cs
- OleDbSchemaGuid.cs
- CodeGroup.cs
- BasicHttpSecurityElement.cs
- ListViewUpdatedEventArgs.cs
- ModelPropertyDescriptor.cs
- XmlSerializerAssemblyAttribute.cs
- PageAsyncTask.cs
- DataGridViewColumnConverter.cs
- ProfilePropertyNameValidator.cs
- ExpressionEditorAttribute.cs
- CustomTrackingRecord.cs
- ServiceParser.cs
- _HeaderInfo.cs
- X509SecurityTokenAuthenticator.cs
- QueryReaderSettings.cs
- DataServiceSaveChangesEventArgs.cs
- GreaterThanOrEqual.cs
- ProgressBarBrushConverter.cs
- TerminatorSinks.cs
- _ConnectStream.cs
- WebSysDisplayNameAttribute.cs
- IDReferencePropertyAttribute.cs
- followingquery.cs
- TrackingServices.cs
- SessionStateModule.cs
- PasswordBoxAutomationPeer.cs
- DataStorage.cs
- TypeConverterHelper.cs
- HScrollProperties.cs
- ToolboxComponentsCreatedEventArgs.cs
- ScrollBar.cs
- TextAction.cs
- SamlSecurityTokenAuthenticator.cs
- Label.cs
- Select.cs
- ProvideValueServiceProvider.cs
- Effect.cs
- SecureStringHasher.cs
- PlaceHolder.cs
- TemplateInstanceAttribute.cs
- RequestQueryProcessor.cs
- peersecuritysettings.cs
- EntityDesignerBuildProvider.cs
- HttpRuntime.cs
- DataRelationPropertyDescriptor.cs
- CommandBindingCollection.cs
- AuthenticatedStream.cs
- Console.cs
- NegationPusher.cs
- PageCodeDomTreeGenerator.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- PrivateFontCollection.cs
- TypeInfo.cs
- UniqueConstraint.cs
- DynamicResourceExtension.cs
- EntityTransaction.cs
- DataBoundControlHelper.cs
- BuildDependencySet.cs
- SimpleWebHandlerParser.cs
- FixedSOMLineRanges.cs
- ProgressBarAutomationPeer.cs
- complextypematerializer.cs
- RuntimeIdentifierPropertyAttribute.cs
- MSHTMLHostUtil.cs
- XsdBuilder.cs
- PropertyGrid.cs
- EndSelectCardRequest.cs
- JpegBitmapDecoder.cs
- ErrorRuntimeConfig.cs
- ComponentManagerBroker.cs