Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / System / Data / Sql / SqlMethodAttribute.cs / 1 / SqlMethodAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //junfang //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false), Serializable] public sealed class SqlMethodAttribute : SqlFunctionAttribute { private bool m_fCallOnNullInputs; private bool m_fMutator; private bool m_fInvokeIfReceiverIsNull; public SqlMethodAttribute() { // default values m_fCallOnNullInputs = true; m_fMutator = false; m_fInvokeIfReceiverIsNull = false; } // SqlMethodAttribute public bool OnNullCall { get { return m_fCallOnNullInputs; } set { m_fCallOnNullInputs = value; } } // CallOnNullInputs public bool IsMutator { get { return m_fMutator; } set { m_fMutator = value; } } // IsMutator public bool InvokeIfReceiverIsNull { get { return m_fInvokeIfReceiverIsNull; } set { m_fInvokeIfReceiverIsNull = value; } } // InvokeIfReceiverIsNull } // class SqlMethodAttribute } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //junfang //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false), Serializable] public sealed class SqlMethodAttribute : SqlFunctionAttribute { private bool m_fCallOnNullInputs; private bool m_fMutator; private bool m_fInvokeIfReceiverIsNull; public SqlMethodAttribute() { // default values m_fCallOnNullInputs = true; m_fMutator = false; m_fInvokeIfReceiverIsNull = false; } // SqlMethodAttribute public bool OnNullCall { get { return m_fCallOnNullInputs; } set { m_fCallOnNullInputs = value; } } // CallOnNullInputs public bool IsMutator { get { return m_fMutator; } set { m_fMutator = value; } } // IsMutator public bool InvokeIfReceiverIsNull { get { return m_fInvokeIfReceiverIsNull; } set { m_fInvokeIfReceiverIsNull = value; } } // InvokeIfReceiverIsNull } // class SqlMethodAttribute } // 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
- CellNormalizer.cs
- UserControl.cs
- XhtmlBasicObjectListAdapter.cs
- MeasureItemEvent.cs
- Header.cs
- TextCollapsingProperties.cs
- SelectionEditingBehavior.cs
- SafeLocalMemHandle.cs
- LineSegment.cs
- XmlUnspecifiedAttribute.cs
- FieldBuilder.cs
- DPAPIProtectedConfigurationProvider.cs
- RelationshipEndMember.cs
- Translator.cs
- LoginCancelEventArgs.cs
- BuildDependencySet.cs
- LoadedOrUnloadedOperation.cs
- AssertUtility.cs
- KerberosTicketHashIdentifierClause.cs
- DbProviderFactories.cs
- AxisAngleRotation3D.cs
- XmlValueConverter.cs
- ResourceDefaultValueAttribute.cs
- CommandField.cs
- GridView.cs
- DesignerVerbCollection.cs
- Models.cs
- DescendantBaseQuery.cs
- XmlSignatureManifest.cs
- SubtreeProcessor.cs
- UserValidatedEventArgs.cs
- QueryPageSettingsEventArgs.cs
- Codec.cs
- TextInfo.cs
- TextRangeProviderWrapper.cs
- UnsafeNativeMethods.cs
- TcpStreams.cs
- UTF8Encoding.cs
- Msec.cs
- WindowsTab.cs
- ThicknessKeyFrameCollection.cs
- TypeGeneratedEventArgs.cs
- GridItemPattern.cs
- TemplateBindingExtensionConverter.cs
- OwnerDrawPropertyBag.cs
- XPathNodePointer.cs
- TextTabProperties.cs
- DeviceSpecificDesigner.cs
- EndpointBehaviorElement.cs
- SolidColorBrush.cs
- PeerApplication.cs
- ChameleonKey.cs
- DiscriminatorMap.cs
- TabOrder.cs
- Tokenizer.cs
- MessagePartSpecification.cs
- CheckoutException.cs
- StylusPointPropertyUnit.cs
- XsltContext.cs
- CommandBindingCollection.cs
- ColumnMap.cs
- InvalidProgramException.cs
- TemplateBindingExpression.cs
- TaiwanCalendar.cs
- WebPartDescriptionCollection.cs
- DtdParser.cs
- AlternateViewCollection.cs
- PrintDocument.cs
- JsonSerializer.cs
- ViewService.cs
- UIElementParagraph.cs
- CodeTypeMemberCollection.cs
- ServiceOperationInfoTypeConverter.cs
- ListManagerBindingsCollection.cs
- StylusPointPropertyId.cs
- MsmqIntegrationInputMessage.cs
- XmlNamespaceMappingCollection.cs
- WorkItem.cs
- HttpCachePolicyWrapper.cs
- MethodBuilderInstantiation.cs
- SqlDependencyListener.cs
- BaseTemplateParser.cs
- iisPickupDirectory.cs
- TypeExtensionSerializer.cs
- ItemTypeToolStripMenuItem.cs
- SqlBooleanMismatchVisitor.cs
- BoundColumn.cs
- TextElementEnumerator.cs
- NativeWrapper.cs
- DtdParser.cs
- BasicHttpSecurityMode.cs
- DesignerActionPanel.cs
- recordstatefactory.cs
- SizeAnimationClockResource.cs
- SqlExpander.cs
- HtmlInputImage.cs
- ServiceOperationUIEditor.cs
- PopOutPanel.cs
- RowsCopiedEventArgs.cs
- WriterOutput.cs