Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / Sql / SqlFacetAttribute.cs / 1 / SqlFacetAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// Information Contained Herein is Proprietary and Confidential.
//
// [....]
// [....]
// daltudov
// [....]
// beysims
// [....]
// vadimt
//-----------------------------------------------------------------------------
using System;
namespace Microsoft.SqlServer.Server {
[ AttributeUsage( AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.ReturnValue | AttributeTargets.Parameter,
AllowMultiple = false,
Inherited = false ) ]
#if WINFSInternalOnly
internal
#else
public
#endif
class SqlFacetAttribute: Attribute {
private bool m_IsFixedLength;
private int m_MaxSize;
private int m_Scale;
private int m_Precision;
private bool m_IsNullable;
// Is this a fixed size field?
public bool IsFixedLength {
get {
return this.m_IsFixedLength;
}
set {
this.m_IsFixedLength = value;
}
}
// The maximum size of the field (in bytes or characters depending on the field type)
// or -1 if the size can be unlimited.
public int MaxSize {
get {
return this.m_MaxSize;
}
set {
this.m_MaxSize = value;
}
}
// Precision, only valid for numeric types.
public int Precision {
get {
return this.m_Precision;
}
set {
this.m_Precision = value;
}
}
// Scale, only valid for numeric types.
public int Scale {
get {
return this.m_Scale;
}
set {
this.m_Scale = value;
}
}
// Is this field nullable?
public bool IsNullable {
get {
return this.m_IsNullable;
}
set {
this.m_IsNullable = value;
}
}
}
}
// 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
- CollaborationHelperFunctions.cs
- ServiceEndpointElement.cs
- CacheMemory.cs
- _NestedSingleAsyncResult.cs
- FileDialog_Vista_Interop.cs
- EnumType.cs
- StylusTip.cs
- ClockGroup.cs
- ItemsChangedEventArgs.cs
- ProvidersHelper.cs
- Variable.cs
- Int16KeyFrameCollection.cs
- OperationPickerDialog.designer.cs
- EventProviderClassic.cs
- ArgIterator.cs
- TabControl.cs
- DataGridViewCellStyle.cs
- TrackingRecord.cs
- ControlEvent.cs
- DocumentViewerConstants.cs
- StateDesigner.Helpers.cs
- BitmapEncoder.cs
- SafeFindHandle.cs
- _SSPISessionCache.cs
- WebRequestModulesSection.cs
- TypefaceMap.cs
- AsyncCodeActivityContext.cs
- XmlCharCheckingReader.cs
- HtmlForm.cs
- AccessViolationException.cs
- WebReferenceCollection.cs
- ProfilePropertySettingsCollection.cs
- Sql8ConformanceChecker.cs
- TextMarkerSource.cs
- HyperLink.cs
- DataPager.cs
- ProfileGroupSettingsCollection.cs
- TypeLibConverter.cs
- TdsParserSessionPool.cs
- HttpCacheParams.cs
- TemplatedMailWebEventProvider.cs
- HTTPNotFoundHandler.cs
- ToolStripMenuItemCodeDomSerializer.cs
- _DigestClient.cs
- Int32Rect.cs
- Run.cs
- WorkflowOperationContext.cs
- SoapSchemaImporter.cs
- UnmanagedMarshal.cs
- CodeGenerator.cs
- PresentationSource.cs
- ConditionalDesigner.cs
- PropertyChangedEventArgs.cs
- AssemblySettingAttributes.cs
- RenderingEventArgs.cs
- SchemaNamespaceManager.cs
- ProcessThreadCollection.cs
- AllMembershipCondition.cs
- MouseGesture.cs
- EFAssociationProvider.cs
- CodeAttributeArgument.cs
- SimpleMailWebEventProvider.cs
- WhitespaceRuleLookup.cs
- QilValidationVisitor.cs
- XmlConvert.cs
- RemotingException.cs
- ServicePointManager.cs
- ClassGenerator.cs
- ExtensionSurface.cs
- RightNameExpirationInfoPair.cs
- ThreadInterruptedException.cs
- EdmFunction.cs
- FormsAuthenticationUser.cs
- GroupQuery.cs
- MenuItemStyle.cs
- LZCodec.cs
- XmlHierarchicalDataSourceView.cs
- DummyDataSource.cs
- UnitySerializationHolder.cs
- GrammarBuilderBase.cs
- DbProviderFactoriesConfigurationHandler.cs
- ToolStripButton.cs
- InlineObject.cs
- XmlJsonWriter.cs
- ClientCultureInfo.cs
- CodeTypeConstructor.cs
- MouseCaptureWithinProperty.cs
- DeviceContext2.cs
- IntegerValidator.cs
- QilLoop.cs
- EditingMode.cs
- AsymmetricSignatureFormatter.cs
- TypeExtensionConverter.cs
- BindableAttribute.cs
- FlowDocumentPageViewerAutomationPeer.cs
- MimeMultiPart.cs
- AppSecurityManager.cs
- ContentPosition.cs
- ClrProviderManifest.cs
- ContentElement.cs