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
- COMException.cs
- Border.cs
- _DigestClient.cs
- WmlCommandAdapter.cs
- ContextStaticAttribute.cs
- ProgressChangedEventArgs.cs
- CLSCompliantAttribute.cs
- SqlDataSource.cs
- StatusStrip.cs
- AdapterUtil.cs
- DynamicActionMessageFilter.cs
- PolyBezierSegmentFigureLogic.cs
- Error.cs
- SqlOuterApplyReducer.cs
- WindowsGrip.cs
- AccessKeyManager.cs
- BulletedListEventArgs.cs
- MethodBody.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FormViewInsertedEventArgs.cs
- DataColumn.cs
- OutputCacheProfile.cs
- CodeAccessPermission.cs
- Line.cs
- Point.cs
- CodeDesigner.cs
- Control.cs
- TimeSpanValidator.cs
- MessageQueueAccessControlEntry.cs
- JpegBitmapDecoder.cs
- RoutedEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- EventArgs.cs
- ThrowHelper.cs
- MethodRental.cs
- AtomMaterializer.cs
- TagMapInfo.cs
- XmlSortKeyAccumulator.cs
- GradientStopCollection.cs
- DataServiceHost.cs
- InvokeBinder.cs
- ListManagerBindingsCollection.cs
- XPathNode.cs
- DesignerFrame.cs
- CodeSnippetExpression.cs
- RealProxy.cs
- WorkflowItemPresenter.cs
- ResizeGrip.cs
- XsdBuildProvider.cs
- Attribute.cs
- ObjectSet.cs
- TdsRecordBufferSetter.cs
- NamespaceQuery.cs
- ISSmlParser.cs
- SerialErrors.cs
- LockCookie.cs
- _NegotiateClient.cs
- TreeNode.cs
- StringUtil.cs
- SmtpMail.cs
- WinInet.cs
- FunctionQuery.cs
- InfoCardKeyedHashAlgorithm.cs
- BindingManagerDataErrorEventArgs.cs
- _DisconnectOverlappedAsyncResult.cs
- Control.cs
- CommentEmitter.cs
- ObfuscationAttribute.cs
- ReachDocumentReferenceSerializerAsync.cs
- DbConnectionPoolIdentity.cs
- ModelTreeEnumerator.cs
- FixedFlowMap.cs
- Parser.cs
- ValidatorUtils.cs
- TextOutput.cs
- VectorCollectionConverter.cs
- srgsitem.cs
- AbsoluteQuery.cs
- DataGridViewRowEventArgs.cs
- PrimaryKeyTypeConverter.cs
- DictionaryGlobals.cs
- LocalTransaction.cs
- XmlCustomFormatter.cs
- XmlSchemaResource.cs
- PathFigure.cs
- ReferenceConverter.cs
- RootBrowserWindowProxy.cs
- SerTrace.cs
- DataServiceRequestException.cs
- DelayLoadType.cs
- FormClosingEvent.cs
- Queue.cs
- NavigationService.cs
- Models.cs
- WebHttpDispatchOperationSelectorData.cs
- TextRunCacheImp.cs
- figurelengthconverter.cs
- WizardPanel.cs
- BamlLocalizationDictionary.cs
- storepermission.cs