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
- BooleanAnimationBase.cs
- EdmError.cs
- TypeUsageBuilder.cs
- webproxy.cs
- IMembershipProvider.cs
- BlobPersonalizationState.cs
- CharEnumerator.cs
- XmlReaderSettings.cs
- TerminatorSinks.cs
- XmlValueConverter.cs
- PropertySegmentSerializer.cs
- InputScope.cs
- WCFBuildProvider.cs
- ComponentEditorPage.cs
- SvcMapFileLoader.cs
- PreviewKeyDownEventArgs.cs
- ActiveXSite.cs
- PeerCredentialElement.cs
- FilteredSchemaElementLookUpTable.cs
- JsonCollectionDataContract.cs
- MissingFieldException.cs
- ItemPager.cs
- SecurityTokenResolver.cs
- ObjectDataSourceFilteringEventArgs.cs
- CriticalHandle.cs
- SvcMapFileLoader.cs
- SingletonInstanceContextProvider.cs
- ContentValidator.cs
- DataChangedEventManager.cs
- ToolStripGripRenderEventArgs.cs
- ComponentResourceManager.cs
- errorpatternmatcher.cs
- TraversalRequest.cs
- WebDisplayNameAttribute.cs
- FixedSchema.cs
- DataFormat.cs
- GenericWebPart.cs
- WindowsProgressbar.cs
- SpeakCompletedEventArgs.cs
- MimeTypePropertyAttribute.cs
- TypeDependencyAttribute.cs
- OracleString.cs
- SuppressMergeCheckAttribute.cs
- AnimationLayer.cs
- UserPreferenceChangingEventArgs.cs
- HelpKeywordAttribute.cs
- RemoveStoryboard.cs
- ImageButton.cs
- UniqueIdentifierService.cs
- InProcStateClientManager.cs
- AdornerLayer.cs
- InputLanguageSource.cs
- ConfigurationManager.cs
- WindowsListView.cs
- latinshape.cs
- RangeBase.cs
- SystemInfo.cs
- QueryAsyncResult.cs
- OptimizedTemplateContentHelper.cs
- FixedSOMTableCell.cs
- GridEntry.cs
- RawUIStateInputReport.cs
- EdgeModeValidation.cs
- _LazyAsyncResult.cs
- WebEncodingValidator.cs
- PageSetupDialog.cs
- SqlDelegatedTransaction.cs
- ViewValidator.cs
- SpanIndex.cs
- ExpandButtonVisibilityConverter.cs
- ConvertEvent.cs
- BindingsCollection.cs
- sqlpipe.cs
- OdbcRowUpdatingEvent.cs
- ReaderContextStackData.cs
- TreeView.cs
- ClockController.cs
- SafeHandle.cs
- Buffer.cs
- InputScope.cs
- CryptoApi.cs
- SelectorAutomationPeer.cs
- UdpChannelListener.cs
- OlePropertyStructs.cs
- UpdateRecord.cs
- LoginUtil.cs
- Color.cs
- CqlParserHelpers.cs
- ByteArrayHelperWithString.cs
- CanonicalizationDriver.cs
- DrawingBrush.cs
- CodeGenerator.cs
- CompiledIdentityConstraint.cs
- TrueReadOnlyCollection.cs
- TextElementCollection.cs
- DodSequenceMerge.cs
- WasHttpModulesInstallComponent.cs
- X509CertificateClaimSet.cs
- MenuItemBinding.cs
- DescendentsWalker.cs