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
- relpropertyhelper.cs
- EncryptedData.cs
- RelOps.cs
- CellParaClient.cs
- HttpPostedFile.cs
- DesignerLoader.cs
- XPathDescendantIterator.cs
- PaginationProgressEventArgs.cs
- BoolExpression.cs
- NativeMethods.cs
- LineUtil.cs
- GenericUriParser.cs
- AnnouncementInnerClientCD1.cs
- HttpCacheVaryByContentEncodings.cs
- SignatureDescription.cs
- sqlser.cs
- TraceInternal.cs
- PostBackTrigger.cs
- RijndaelManagedTransform.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ScaleTransform.cs
- LookupNode.cs
- ThreadPool.cs
- WeakKeyDictionary.cs
- SortedList.cs
- CustomErrorsSectionWrapper.cs
- BaseInfoTable.cs
- PropertyMap.cs
- EtwTrackingParticipant.cs
- GroupBoxAutomationPeer.cs
- SystemThemeKey.cs
- SQLInt16Storage.cs
- XmlSchemaAll.cs
- AnnotationComponentManager.cs
- DictionaryEntry.cs
- UIElementHelper.cs
- ZipIOCentralDirectoryBlock.cs
- mediaclock.cs
- DataViewManagerListItemTypeDescriptor.cs
- ControlPager.cs
- Application.cs
- ControlOperationInvoker.cs
- TypeSource.cs
- SqlMultiplexer.cs
- Solver.cs
- OperandQuery.cs
- SafeNativeMethodsCLR.cs
- WindowInteropHelper.cs
- Stroke2.cs
- ResourceIDHelper.cs
- FloatMinMaxAggregationOperator.cs
- SymbolTable.cs
- Point3DValueSerializer.cs
- SynchronizationValidator.cs
- XsltInput.cs
- FormsAuthenticationEventArgs.cs
- ConstructorBuilder.cs
- TabControl.cs
- ControlEvent.cs
- EntityFunctions.cs
- CreateUserErrorEventArgs.cs
- XmlSchemaGroup.cs
- XmlCollation.cs
- cookiecontainer.cs
- FileNotFoundException.cs
- Formatter.cs
- XPathSingletonIterator.cs
- Group.cs
- xdrvalidator.cs
- IERequestCache.cs
- XmlSerializerVersionAttribute.cs
- SmuggledIUnknown.cs
- CorePropertiesFilter.cs
- CTreeGenerator.cs
- AdCreatedEventArgs.cs
- FolderLevelBuildProviderCollection.cs
- WebDescriptionAttribute.cs
- MatrixStack.cs
- Int16Storage.cs
- SelectingProviderEventArgs.cs
- InvokeGenerator.cs
- GradientPanel.cs
- DataGridViewBand.cs
- FontStretches.cs
- HwndSourceParameters.cs
- XsdDataContractImporter.cs
- EastAsianLunisolarCalendar.cs
- XmlImplementation.cs
- XpsFontSubsetter.cs
- SafeCertificateContext.cs
- NetworkInformationPermission.cs
- EventHandlersDesigner.cs
- DictionarySurrogate.cs
- TrustManagerMoreInformation.cs
- TextDecorationCollection.cs
- RegexFCD.cs
- XmlStringTable.cs
- SystemKeyConverter.cs
- PointUtil.cs
- ExternalException.cs