Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / LocationUpdates.cs / 1305376 / LocationUpdates.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Configuration {
//
// LocationUpdates contains all the updates that share the same location characteristics.
//
internal class LocationUpdates {
OverrideModeSetting _overrideMode;
bool _inheritInChildApps;
SectionUpdates _sectionUpdates; // root of section
internal LocationUpdates(OverrideModeSetting overrideMode, bool inheritInChildApps) {
_overrideMode = overrideMode;
_inheritInChildApps = inheritInChildApps;
_sectionUpdates = new SectionUpdates(string.Empty);
}
internal OverrideModeSetting OverrideMode {
get {return _overrideMode;}
}
internal bool InheritInChildApps {
get {return _inheritInChildApps;}
}
internal SectionUpdates SectionUpdates {
get {return _sectionUpdates;}
}
internal bool IsDefault {
get {
return _overrideMode.IsDefaultForLocationTag && _inheritInChildApps == true;
}
}
internal void CompleteUpdates() {
_sectionUpdates.CompleteUpdates();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Configuration {
//
// LocationUpdates contains all the updates that share the same location characteristics.
//
internal class LocationUpdates {
OverrideModeSetting _overrideMode;
bool _inheritInChildApps;
SectionUpdates _sectionUpdates; // root of section
internal LocationUpdates(OverrideModeSetting overrideMode, bool inheritInChildApps) {
_overrideMode = overrideMode;
_inheritInChildApps = inheritInChildApps;
_sectionUpdates = new SectionUpdates(string.Empty);
}
internal OverrideModeSetting OverrideMode {
get {return _overrideMode;}
}
internal bool InheritInChildApps {
get {return _inheritInChildApps;}
}
internal SectionUpdates SectionUpdates {
get {return _sectionUpdates;}
}
internal bool IsDefault {
get {
return _overrideMode.IsDefaultForLocationTag && _inheritInChildApps == true;
}
}
internal void CompleteUpdates() {
_sectionUpdates.CompleteUpdates();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PassportAuthentication.cs
- ColumnCollection.cs
- ToolStripManager.cs
- CookielessHelper.cs
- EditBehavior.cs
- altserialization.cs
- Speller.cs
- ProfileService.cs
- ComboBox.cs
- XmlSchemaGroup.cs
- PathNode.cs
- StaticResourceExtension.cs
- webclient.cs
- RequestCachePolicyConverter.cs
- SettingsPropertyNotFoundException.cs
- ProviderException.cs
- WindowsListViewItem.cs
- XsdBuilder.cs
- FrameworkElementFactoryMarkupObject.cs
- ColorAnimationBase.cs
- PatternMatcher.cs
- HtmlLiteralTextAdapter.cs
- SelectedDatesCollection.cs
- SchemaMapping.cs
- DataGridHeaderBorder.cs
- FontUnitConverter.cs
- DirtyTextRange.cs
- WebPartChrome.cs
- Encoding.cs
- complextypematerializer.cs
- Stackframe.cs
- SafeNativeMethods.cs
- ConfigurationSectionGroupCollection.cs
- ConversionContext.cs
- VectorCollection.cs
- SkewTransform.cs
- LiteralControl.cs
- ArcSegment.cs
- BitmapSource.cs
- SessionStateUtil.cs
- DbMetaDataColumnNames.cs
- EnumerableCollectionView.cs
- FastEncoderWindow.cs
- ToolStripStatusLabel.cs
- ContextBase.cs
- RayMeshGeometry3DHitTestResult.cs
- RegexBoyerMoore.cs
- BindingParameterCollection.cs
- CompilationLock.cs
- AuthenticationService.cs
- WorkflowTransactionService.cs
- Mapping.cs
- ConfigurationManagerInternalFactory.cs
- InternalPolicyElement.cs
- OdbcFactory.cs
- BuildProvidersCompiler.cs
- OracleConnection.cs
- WebPartRestoreVerb.cs
- CodeNamespaceImportCollection.cs
- GestureRecognitionResult.cs
- PointCollectionConverter.cs
- TraceContext.cs
- ReverseInheritProperty.cs
- XsdBuildProvider.cs
- DesignBindingConverter.cs
- PathFigureCollectionValueSerializer.cs
- ColumnHeader.cs
- CounterNameConverter.cs
- Point3D.cs
- ScriptReferenceBase.cs
- SoapSchemaMember.cs
- PageSetupDialog.cs
- MachineKey.cs
- SignatureDescription.cs
- PeerNameRegistration.cs
- EntityClassGenerator.cs
- SHA1CryptoServiceProvider.cs
- DatePickerAutomationPeer.cs
- XmlReflectionMember.cs
- KeyGestureConverter.cs
- WithStatement.cs
- IndependentlyAnimatedPropertyMetadata.cs
- AnnotationComponentManager.cs
- DrawingAttributes.cs
- ExceptionUtility.cs
- ObjectHelper.cs
- OdbcConnectionStringbuilder.cs
- TcpProcessProtocolHandler.cs
- XmlReaderSettings.cs
- IsolatedStoragePermission.cs
- ProviderConnectionPointCollection.cs
- AdPostCacheSubstitution.cs
- XComponentModel.cs
- ProfessionalColorTable.cs
- ClientProxyGenerator.cs
- log.cs
- NegationPusher.cs
- ISessionStateStore.cs
- ComProxy.cs
- EmptyCollection.cs