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
- TextTreeDeleteContentUndoUnit.cs
- BStrWrapper.cs
- CookieParameter.cs
- IERequestCache.cs
- SoapTransportImporter.cs
- MarkupExtensionParser.cs
- PersianCalendar.cs
- Vector3D.cs
- FrameworkTemplate.cs
- NameValueSectionHandler.cs
- SQlBooleanStorage.cs
- SizeIndependentAnimationStorage.cs
- CompositeKey.cs
- LowerCaseStringConverter.cs
- UrlMappingsModule.cs
- FilterElement.cs
- JoinTreeSlot.cs
- MediaPlayer.cs
- SiteIdentityPermission.cs
- WebPartMovingEventArgs.cs
- PassportPrincipal.cs
- LineVisual.cs
- SHA256Managed.cs
- DataGridCell.cs
- InputBindingCollection.cs
- ByteStreamGeometryContext.cs
- ModelProperty.cs
- WebColorConverter.cs
- _NTAuthentication.cs
- Hex.cs
- LocalFileSettingsProvider.cs
- DropShadowEffect.cs
- ProcessInfo.cs
- BuilderPropertyEntry.cs
- DecoderFallback.cs
- FrameworkRichTextComposition.cs
- SQLByte.cs
- IPEndPoint.cs
- InternalRelationshipCollection.cs
- RequestCachingSection.cs
- ListBase.cs
- DataServices.cs
- TaskFormBase.cs
- ClipboardData.cs
- RuntimeEnvironment.cs
- BCLDebug.cs
- SecurityIdentifierElementCollection.cs
- UpdateProgress.cs
- ApplicationInfo.cs
- Dispatcher.cs
- PointLight.cs
- PassportAuthentication.cs
- SqlRowUpdatingEvent.cs
- ExpressionStringBuilder.cs
- ActivityTypeDesigner.xaml.cs
- SchemaRegistration.cs
- xml.cs
- NumberSubstitution.cs
- SystemUdpStatistics.cs
- SignerInfo.cs
- XmlArrayAttribute.cs
- SynchronizationHandlesCodeDomSerializer.cs
- ThemeableAttribute.cs
- SchemaCollectionPreprocessor.cs
- PartialCachingAttribute.cs
- Bind.cs
- MultiPageTextView.cs
- ButtonBase.cs
- CollectionViewGroup.cs
- NamespaceDecl.cs
- CharEntityEncoderFallback.cs
- DbDataReader.cs
- TransactionChannelListener.cs
- ParentQuery.cs
- CompilationUtil.cs
- GestureRecognitionResult.cs
- GeneralTransform3DGroup.cs
- ErrorsHelper.cs
- ScaleTransform.cs
- ContentHostHelper.cs
- User.cs
- XmlSignatureManifest.cs
- DeclaredTypeValidator.cs
- IIS7WorkerRequest.cs
- CallbackException.cs
- DataControlFieldCell.cs
- MemoryRecordBuffer.cs
- SchemaInfo.cs
- DesignerSerializationManager.cs
- CFGGrammar.cs
- ParserHooks.cs
- Label.cs
- FacetEnabledSchemaElement.cs
- ContextStack.cs
- DecimalFormatter.cs
- Point3DAnimationUsingKeyFrames.cs
- FixedStringLookup.cs
- ParallelEnumerableWrapper.cs
- ListenerAdapterBase.cs
- MetabaseSettings.cs