Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / Microsoft / SqlServer / Server / SmiEventStream.cs / 1305376 / SmiEventStream.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System; internal abstract class SmiEventStream : IDisposable { internal abstract bool HasEvents { get; } internal abstract void Close( SmiEventSink sink ); public virtual void Dispose( ) { // Obsoleting from SMI -- use Close instead. // Intended to be removed (along with inheriting IDisposable) prior to RTM. // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-. // 2) Server didn't implement V2- on some interface and negotiated V2-. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); } internal abstract void ProcessEvent( SmiEventSink sink ); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System; internal abstract class SmiEventStream : IDisposable { internal abstract bool HasEvents { get; } internal abstract void Close( SmiEventSink sink ); public virtual void Dispose( ) { // Obsoleting from SMI -- use Close instead. // Intended to be removed (along with inheriting IDisposable) prior to RTM. // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-. // 2) Server didn't implement V2- on some interface and negotiated V2-. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); } internal abstract void ProcessEvent( SmiEventSink sink ); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int32CollectionValueSerializer.cs
- NegatedConstant.cs
- WebEventTraceProvider.cs
- BaseUriHelper.cs
- InputGestureCollection.cs
- DirectoryInfo.cs
- BoolExpression.cs
- PropertyMapper.cs
- TextBoxRenderer.cs
- OptimalTextSource.cs
- Misc.cs
- MULTI_QI.cs
- UserControlBuildProvider.cs
- ObjectQueryProvider.cs
- SmiXetterAccessMap.cs
- CodeGen.cs
- ActivationServices.cs
- DbMetaDataColumnNames.cs
- GridViewColumnHeader.cs
- SoapAttributeAttribute.cs
- GeometryModel3D.cs
- CryptoHelper.cs
- UIHelper.cs
- SystemInformation.cs
- CapabilitiesSection.cs
- BindingExpressionUncommonField.cs
- InvalidCastException.cs
- ParserStreamGeometryContext.cs
- ComPlusServiceHost.cs
- QilReference.cs
- ReflectionHelper.cs
- Table.cs
- BoundColumn.cs
- SearchExpression.cs
- Material.cs
- DesignerDataColumn.cs
- DataAccessor.cs
- SystemIcons.cs
- basenumberconverter.cs
- DataGridViewToolTip.cs
- ProtocolProfile.cs
- SettingsPropertyWrongTypeException.cs
- XmlChildEnumerator.cs
- Popup.cs
- Padding.cs
- SqlUtils.cs
- TextRange.cs
- RootContext.cs
- MediaSystem.cs
- SimpleFieldTemplateUserControl.cs
- Config.cs
- objectresult_tresulttype.cs
- HttpFileCollection.cs
- ActivationWorker.cs
- MdiWindowListStrip.cs
- SessionPageStateSection.cs
- safelink.cs
- DataGridColumnHeaderAutomationPeer.cs
- TreeNodeMouseHoverEvent.cs
- ReadOnlyCollection.cs
- ExecutionEngineException.cs
- XmlNullResolver.cs
- Base64Decoder.cs
- SimpleHandlerFactory.cs
- IdentifierCollection.cs
- WriteableBitmap.cs
- FunctionImportElement.cs
- _FtpDataStream.cs
- HorizontalAlignConverter.cs
- BuilderElements.cs
- XmlSchemaAppInfo.cs
- OrderedDictionaryStateHelper.cs
- QuestionEventArgs.cs
- MimeObjectFactory.cs
- MDIWindowDialog.cs
- ContextProperty.cs
- FtpRequestCacheValidator.cs
- TdsRecordBufferSetter.cs
- TableCell.cs
- dbdatarecord.cs
- OperationInvokerBehavior.cs
- LinkArea.cs
- ScaleTransform3D.cs
- DecoderNLS.cs
- RangeBaseAutomationPeer.cs
- ReferenceEqualityComparer.cs
- FragmentQuery.cs
- ExternalFile.cs
- OdbcConnectionString.cs
- DataSourceControl.cs
- UserControlBuildProvider.cs
- CheckBoxBaseAdapter.cs
- AttributeXamlType.cs
- SmtpDigestAuthenticationModule.cs
- EnumerableRowCollection.cs
- EncryptedData.cs
- HttpRequestWrapper.cs
- DynamicControlParameter.cs
- TagNameToTypeMapper.cs
- _BaseOverlappedAsyncResult.cs