Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / QueryParameter.cs / 1 / QueryParameter.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections.Generic; using System.IO; using System.Text; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary: // Maps a set of values to an index name for use in queries. // internal class QueryParameter { string m_indexName; Listm_objects; // // Summary: // Constructs a new instance of the QueryParameter using // the specified name. // // Parameters: // name: the name of the index to use. // public QueryParameter( string name ) { if( String.IsNullOrEmpty( name ) ) throw IDT.ThrowHelperArgumentNull( "name" ); m_indexName = name; m_objects = new List ( ); } // // Summary: // Constructs a new instance of the QueryParameter using // the specified name and values. // // Remarks: // each item in this array get its own index entry. // // Parameters: // name: the name of the index to use. // values: the array of values to create match entries // public QueryParameter( string name, params object[] values ) : this( name ) { for( int i = 0; i < values.Length; i++ ) AddMatch( values[i] ); } // // Summary: // Gets the name of the index this Match will be performed against. // public string IndexName { get { return m_indexName; } internal set{ m_indexName = value; } } // // Summary: // Gets the index object that wrapps the entry. // // Remarks: // For internal store use only // internal IndexObject this[ int index ] { get{ return m_objects[ index ]; } } // // Summary: // Gets the count of indexObjects contained // public int Count { get { return m_objects.Count; } } // // Summary: // Clears the list of match values. // public void Clear() { m_objects.Clear(); } // // Summary: // Adds the a precompiled index value to the list of matches. // // Paramters: // compiledForm: Compiled index data. // public void AddCompiled( byte[] compiledForm ) { m_objects.Add( new IndexObject( compiledForm ) ); } // // Summary: // Adds the values specified as multiValue indexes // // Paramters: // values: the array of values to add to the match entry // public void AddMatch( params object[] values ) { if( null == values || 0 == values.Length ) throw IDT.ThrowHelperArgumentNull( "values" ); m_objects.Add( new IndexObject( values ) ); } } } // 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
- EllipseGeometry.cs
- InvalidStoreProtectionKeyException.cs
- ResourcesChangeInfo.cs
- DbBuffer.cs
- RC2CryptoServiceProvider.cs
- WebPartMinimizeVerb.cs
- TableLayoutPanelDesigner.cs
- Operand.cs
- CancellationToken.cs
- IntPtr.cs
- HtmlValidationSummaryAdapter.cs
- BCLDebug.cs
- FieldBuilder.cs
- UndoManager.cs
- FormViewUpdateEventArgs.cs
- NativeMethodsCLR.cs
- WmlPanelAdapter.cs
- RsaKeyIdentifierClause.cs
- DurationConverter.cs
- QueryResultOp.cs
- BamlRecordHelper.cs
- OutOfProcStateClientManager.cs
- BaseInfoTable.cs
- ColumnWidthChangedEvent.cs
- StateChangeEvent.cs
- LiteralLink.cs
- SchemaTableOptionalColumn.cs
- HealthMonitoringSection.cs
- OleDbFactory.cs
- FrameAutomationPeer.cs
- hresults.cs
- ZoneButton.cs
- SmtpFailedRecipientsException.cs
- CustomErrorsSectionWrapper.cs
- ObservableCollectionDefaultValueFactory.cs
- TagPrefixCollection.cs
- SiteMembershipCondition.cs
- ParserOptions.cs
- ServiceMoniker.cs
- CultureInfo.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PixelFormats.cs
- ScriptResourceInfo.cs
- ImageBrush.cs
- RangeValuePattern.cs
- DataServiceException.cs
- ExeContext.cs
- SourceFileBuildProvider.cs
- KeyedHashAlgorithm.cs
- XsdBuilder.cs
- SamlAction.cs
- FormsAuthenticationUserCollection.cs
- DomainLiteralReader.cs
- CodeAccessPermission.cs
- PerformanceCounter.cs
- XmlCompatibilityReader.cs
- GraphicsContainer.cs
- SQLInt64.cs
- WindowsListViewGroupHelper.cs
- Expressions.cs
- ScriptComponentDescriptor.cs
- Themes.cs
- TakeQueryOptionExpression.cs
- ProtocolsSection.cs
- __Error.cs
- StoreAnnotationsMap.cs
- COM2ComponentEditor.cs
- DependsOnAttribute.cs
- CfgArc.cs
- FamilyMapCollection.cs
- DictionaryBase.cs
- XmlComment.cs
- HealthMonitoringSectionHelper.cs
- TemplatedWizardStep.cs
- HtmlUtf8RawTextWriter.cs
- HyperLinkStyle.cs
- Transform.cs
- DataRowComparer.cs
- SQLInt32.cs
- DefaultValueMapping.cs
- PropagationProtocolsTracing.cs
- EncryptedPackage.cs
- RemoteHelper.cs
- Row.cs
- LockCookie.cs
- EventLogInformation.cs
- ControlValuePropertyAttribute.cs
- XPathQueryGenerator.cs
- Cast.cs
- ProxyWebPartConnectionCollection.cs
- HostingPreferredMapPath.cs
- EntityDataSourceChangedEventArgs.cs
- Matrix.cs
- SoapAttributeAttribute.cs
- GlyphsSerializer.cs
- KeyValuePairs.cs
- ConditionalExpression.cs
- OperationCanceledException.cs
- AttachedAnnotationChangedEventArgs.cs
- Cursor.cs