Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FeatureManager.cs
- ToolboxItemAttribute.cs
- WindowsPen.cs
- Odbc32.cs
- TaiwanLunisolarCalendar.cs
- Html32TextWriter.cs
- MinimizableAttributeTypeConverter.cs
- SQLInt64.cs
- PersistenceTypeAttribute.cs
- ButtonFieldBase.cs
- MarshalByValueComponent.cs
- TextLineResult.cs
- ColorMatrix.cs
- StylusPointProperties.cs
- TextBoxBase.cs
- MutexSecurity.cs
- ObjectAnimationBase.cs
- EmptyStringExpandableObjectConverter.cs
- BamlRecordReader.cs
- IntSecurity.cs
- AmbientProperties.cs
- TemplateBindingExtension.cs
- RichTextBox.cs
- DataGridColumnFloatingHeader.cs
- OleStrCAMarshaler.cs
- NumericUpDown.cs
- ThreadStaticAttribute.cs
- Table.cs
- SpecularMaterial.cs
- RichTextBoxConstants.cs
- Label.cs
- BigInt.cs
- KeyMatchBuilder.cs
- LocalizableAttribute.cs
- UnmanagedMarshal.cs
- CodeTypeParameterCollection.cs
- PasswordBox.cs
- SmtpReplyReader.cs
- RightsManagementResourceHelper.cs
- SubMenuStyle.cs
- PackageController.cs
- SegmentTree.cs
- SqlRecordBuffer.cs
- PathSegmentCollection.cs
- ChannelRequirements.cs
- SocketException.cs
- Substitution.cs
- PlatformNotSupportedException.cs
- AttributeCollection.cs
- TextSimpleMarkerProperties.cs
- IsolatedStorage.cs
- ReadContentAsBinaryHelper.cs
- MemberDescriptor.cs
- _NativeSSPI.cs
- DefaultAssemblyResolver.cs
- RoutedEventArgs.cs
- ResolveMatches11.cs
- LocatorBase.cs
- CustomErrorsSection.cs
- MultiAsyncResult.cs
- Helpers.cs
- AppDomainInstanceProvider.cs
- MimeFormReflector.cs
- PinnedBufferMemoryStream.cs
- Currency.cs
- CurrentChangingEventManager.cs
- SetState.cs
- DetailsViewPagerRow.cs
- SharedPersonalizationStateInfo.cs
- WinFormsSecurity.cs
- TcpTransportElement.cs
- ContentControl.cs
- DrawingState.cs
- CodeArgumentReferenceExpression.cs
- Matrix3DStack.cs
- Predicate.cs
- BoolExpr.cs
- WebBrowserUriTypeConverter.cs
- HitTestResult.cs
- Win32MouseDevice.cs
- ProtectedConfiguration.cs
- MeasureItemEvent.cs
- ToolStripActionList.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- InstanceKeyView.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlUtil.cs
- QueryPrefixOp.cs
- AuthenticodeSignatureInformation.cs
- AnonymousIdentificationModule.cs
- GradientSpreadMethodValidation.cs
- CompatibleComparer.cs
- MatrixAnimationUsingKeyFrames.cs
- TextDecorationCollectionConverter.cs
- FtpCachePolicyElement.cs
- nulltextcontainer.cs
- Thickness.cs
- Comparer.cs
- DataGridCell.cs
- FixedSOMPage.cs