Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Sql / SqlMethodAttribute.cs / 1305376 / 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
- UnmanagedMemoryStreamWrapper.cs
- InboundActivityHelper.cs
- ViewgenContext.cs
- ObjectContext.cs
- FontFamilyIdentifier.cs
- ProvidersHelper.cs
- _AutoWebProxyScriptWrapper.cs
- AdjustableArrowCap.cs
- DefaultPropertyAttribute.cs
- ObjectHandle.cs
- GreaterThan.cs
- InsufficientMemoryException.cs
- TableSectionStyle.cs
- SqlStream.cs
- GlobalProxySelection.cs
- CookieProtection.cs
- Ray3DHitTestResult.cs
- ReplyChannelAcceptor.cs
- OdbcDataAdapter.cs
- DataServiceProcessingPipeline.cs
- BindValidator.cs
- ValidationResult.cs
- ControllableStoryboardAction.cs
- SecurityContext.cs
- DESCryptoServiceProvider.cs
- WebServiceTypeData.cs
- ObjectContext.cs
- DetailsViewCommandEventArgs.cs
- ThreadPool.cs
- ProcessModelInfo.cs
- EntityDataSourceColumn.cs
- Literal.cs
- IdnMapping.cs
- X509ClientCertificateAuthenticationElement.cs
- InternalConfigEventArgs.cs
- TableRow.cs
- AppDomainAttributes.cs
- NotCondition.cs
- DirectionalLight.cs
- CommonProperties.cs
- FormsAuthentication.cs
- SeparatorAutomationPeer.cs
- PostBackOptions.cs
- FixedLineResult.cs
- DesignerTextViewAdapter.cs
- HttpHandlerActionCollection.cs
- HtmlMeta.cs
- RequestNavigateEventArgs.cs
- WebPartCancelEventArgs.cs
- ToolStripSeparatorRenderEventArgs.cs
- CheckBox.cs
- DoubleAnimationUsingKeyFrames.cs
- StdRegProviderWrapper.cs
- XPathBuilder.cs
- SafeProcessHandle.cs
- NameValuePair.cs
- BamlMapTable.cs
- SchemaNotation.cs
- LeaseManager.cs
- NameValueCollection.cs
- Group.cs
- BitmapSizeOptions.cs
- SchemaElementLookUpTable.cs
- DBSqlParser.cs
- PackagePartCollection.cs
- PersianCalendar.cs
- SafeNativeMethodsMilCoreApi.cs
- PropertyTabChangedEvent.cs
- ObjectFullSpanRewriter.cs
- DataGridSortCommandEventArgs.cs
- ContainerActivationHelper.cs
- QilLiteral.cs
- UnknownBitmapEncoder.cs
- OdbcStatementHandle.cs
- InsufficientExecutionStackException.cs
- HtmlInputText.cs
- RightNameExpirationInfoPair.cs
- MetafileHeaderWmf.cs
- Popup.cs
- OdbcConnectionFactory.cs
- HttpHandlersSection.cs
- AliasExpr.cs
- ping.cs
- SqlDataSourceAdvancedOptionsForm.cs
- NativeMethods.cs
- PersonalizationProviderCollection.cs
- SafeHGlobalHandleCritical.cs
- XmlSchemaInferenceException.cs
- FormViewDeletedEventArgs.cs
- PropertyEntry.cs
- DataGridViewRowPrePaintEventArgs.cs
- ConfigurationFileMap.cs
- ObjectDisposedException.cs
- MimePart.cs
- DbBuffer.cs
- JsonFormatMapping.cs
- RSAPKCS1KeyExchangeFormatter.cs
- __TransparentProxy.cs
- DbMetaDataColumnNames.cs
- SizeAnimationClockResource.cs