Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DefinitionBase.cs
- LoadedOrUnloadedOperation.cs
- Underline.cs
- SimpleLine.cs
- NestedContainer.cs
- mongolianshape.cs
- WindowsEditBoxRange.cs
- ParentUndoUnit.cs
- SqlProviderServices.cs
- MatcherBuilder.cs
- FontStretchConverter.cs
- HttpConfigurationContext.cs
- TextPointer.cs
- PreloadedPackages.cs
- TreeNodeBindingDepthConverter.cs
- DecoderNLS.cs
- AccessibleObject.cs
- sqlcontext.cs
- X509ChainPolicy.cs
- PriorityQueue.cs
- CircleHotSpot.cs
- SessionEndingEventArgs.cs
- PathFigureCollection.cs
- Guid.cs
- RadioButton.cs
- SimpleTypesSurrogate.cs
- LayoutUtils.cs
- WorkflowDesignerColors.cs
- DecoderFallbackWithFailureFlag.cs
- StorageFunctionMapping.cs
- ManagedIStream.cs
- XmlSchemaSequence.cs
- DeleteMemberBinder.cs
- CellLabel.cs
- HtmlInputSubmit.cs
- TypeExtension.cs
- AnimationException.cs
- TraceContext.cs
- XmlSortKeyAccumulator.cs
- ToolStripOverflow.cs
- TrackingParticipant.cs
- DataMemberAttribute.cs
- TypedAsyncResult.cs
- PersonalizationStateInfo.cs
- Array.cs
- PhysicalOps.cs
- CommandField.cs
- NamespaceDecl.cs
- WorkflowEnvironment.cs
- ClaimTypeElement.cs
- ItemsChangedEventArgs.cs
- Compiler.cs
- ImplicitInputBrush.cs
- BmpBitmapEncoder.cs
- SecurityRuntime.cs
- SoapExtensionStream.cs
- CssStyleCollection.cs
- UrlAuthorizationModule.cs
- Icon.cs
- SizeConverter.cs
- Storyboard.cs
- GenerateTemporaryTargetAssembly.cs
- MinimizableAttributeTypeConverter.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- XmlSchemaSimpleType.cs
- DependencyObjectProvider.cs
- XPathNode.cs
- HebrewNumber.cs
- IndentedTextWriter.cs
- RequestTimeoutManager.cs
- BufferedGraphics.cs
- NativeObjectSecurity.cs
- Span.cs
- InvalidPipelineStoreException.cs
- ADMembershipUser.cs
- CacheMemory.cs
- X509CertificateValidator.cs
- Pen.cs
- ContractBase.cs
- HostedController.cs
- DbSourceCommand.cs
- AppDomainProtocolHandler.cs
- SplitterCancelEvent.cs
- RoutedEventHandlerInfo.cs
- PasswordTextContainer.cs
- HostUtils.cs
- UnsafeNativeMethods.cs
- DesignerRegionCollection.cs
- StrongNameKeyPair.cs
- FormattedText.cs
- DriveNotFoundException.cs
- ResXResourceSet.cs
- XmlSchema.cs
- RelatedImageListAttribute.cs
- HtmlWindow.cs
- WebEventTraceProvider.cs
- LinqDataSourceDisposeEventArgs.cs
- PeerResolverMode.cs
- AutomationIdentifierGuids.cs
- XmlWriterDelegator.cs