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
- XmlImplementation.cs
- TextureBrush.cs
- wgx_commands.cs
- FloatAverageAggregationOperator.cs
- TypeInfo.cs
- Single.cs
- ListSourceHelper.cs
- ServiceInfoCollection.cs
- GroupLabel.cs
- PeerNameResolver.cs
- WindowProviderWrapper.cs
- WindowsToolbarAsMenu.cs
- TraceFilter.cs
- SigningCredentials.cs
- DbModificationCommandTree.cs
- Switch.cs
- VectorCollectionValueSerializer.cs
- UnsafeNativeMethods.cs
- securitycriticaldata.cs
- NativeActivityAbortContext.cs
- MatchingStyle.cs
- SecurityTokenException.cs
- ErasingStroke.cs
- SessionStateUtil.cs
- SessionStateUtil.cs
- ToolStripSystemRenderer.cs
- JsonObjectDataContract.cs
- TypeUsageBuilder.cs
- FileSystemWatcher.cs
- LogicalChannel.cs
- SqlXml.cs
- Triangle.cs
- DataColumnSelectionConverter.cs
- TranslateTransform3D.cs
- HtmlEmptyTagControlBuilder.cs
- EventRouteFactory.cs
- DBAsyncResult.cs
- NativeCompoundFileAPIs.cs
- TTSVoice.cs
- XamlBrushSerializer.cs
- Stroke2.cs
- baseaxisquery.cs
- SqlRemoveConstantOrderBy.cs
- ProxyWebPartManager.cs
- Win32SafeHandles.cs
- BindingContext.cs
- sitestring.cs
- NetDataContractSerializer.cs
- PageOutputColor.cs
- MemoryMappedFileSecurity.cs
- ConcatQueryOperator.cs
- ImmutableCollection.cs
- DrawItemEvent.cs
- Geometry3D.cs
- CompilerCollection.cs
- SR.Designer.cs
- ToolStripSplitStackLayout.cs
- CallbackWrapper.cs
- ExpandCollapsePattern.cs
- FragmentQueryKB.cs
- SecurityState.cs
- Point3D.cs
- DbParameterHelper.cs
- ResourcePermissionBaseEntry.cs
- StrongNameHelpers.cs
- GradientBrush.cs
- DataGridViewCell.cs
- EmptyEnumerable.cs
- CreatingCookieEventArgs.cs
- ToolStripDropTargetManager.cs
- XmlSchemaSimpleContent.cs
- TimeZone.cs
- WebDisplayNameAttribute.cs
- AutoCompleteStringCollection.cs
- LinkLabel.cs
- BitmapEffectDrawing.cs
- MulticastNotSupportedException.cs
- GatewayIPAddressInformationCollection.cs
- SchemaEntity.cs
- LoadRetryHandler.cs
- SecurityTokenProvider.cs
- DataBindingCollection.cs
- XmlReflectionMember.cs
- FontFaceLayoutInfo.cs
- SecurityDocument.cs
- ProcessHostServerConfig.cs
- NavigationService.cs
- AppDomainManager.cs
- ServerProtocol.cs
- MissingMemberException.cs
- WebReferenceOptions.cs
- MissingFieldException.cs
- LinkedResource.cs
- FilteredDataSetHelper.cs
- CorrelationManager.cs
- SpotLight.cs
- SchemaObjectWriter.cs
- GreenMethods.cs
- ColorAnimationBase.cs
- PropertyStore.cs