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
- InputLanguageCollection.cs
- LayoutEngine.cs
- DropTarget.cs
- AutomationPropertyInfo.cs
- TargetParameterCountException.cs
- HtmlTableRowCollection.cs
- XPathConvert.cs
- GenericTypeParameterBuilder.cs
- TemplateDefinition.cs
- ExportFileRequest.cs
- DataControlField.cs
- contentDescriptor.cs
- ProxyAssemblyNotLoadedException.cs
- DataKey.cs
- PeerToPeerException.cs
- DbDataAdapter.cs
- StringDictionary.cs
- ScrollChrome.cs
- RelationshipDetailsRow.cs
- ByteAnimationBase.cs
- basecomparevalidator.cs
- GetPageCompletedEventArgs.cs
- ExitEventArgs.cs
- Drawing.cs
- ToolStripRenderEventArgs.cs
- SHA512.cs
- CaseCqlBlock.cs
- ExportOptions.cs
- SpecularMaterial.cs
- IODescriptionAttribute.cs
- XsltContext.cs
- DynamicControlParameter.cs
- MembershipSection.cs
- SerializationAttributes.cs
- securitymgrsite.cs
- WebPartMovingEventArgs.cs
- GetLastErrorDetailsRequest.cs
- RSAOAEPKeyExchangeFormatter.cs
- PipeConnection.cs
- ModulesEntry.cs
- CollectionDataContract.cs
- ToolStripDropDownItem.cs
- CopyAction.cs
- LoginName.cs
- CodeDirectionExpression.cs
- RectConverter.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- MarkupProperty.cs
- ContentPlaceHolderDesigner.cs
- pingexception.cs
- HandlerFactoryCache.cs
- ExternalException.cs
- WindowsStreamSecurityUpgradeProvider.cs
- SharedPersonalizationStateInfo.cs
- ProcessModuleCollection.cs
- RecordsAffectedEventArgs.cs
- WorkflowInlining.cs
- Renderer.cs
- CodeTypeDeclaration.cs
- Condition.cs
- InvalidOleVariantTypeException.cs
- EdmType.cs
- ExpressionEvaluator.cs
- DataControlButton.cs
- CustomAttributeFormatException.cs
- MimeFormatter.cs
- PageOutputColor.cs
- TextSpan.cs
- ZoneLinkButton.cs
- BindingGroup.cs
- UnsafeNativeMethods.cs
- UserPreference.cs
- MarkerProperties.cs
- LoginCancelEventArgs.cs
- CodeSnippetTypeMember.cs
- FileStream.cs
- FileDialog_Vista.cs
- ImageSourceTypeConverter.cs
- SamlAuthorityBinding.cs
- EmbeddedMailObjectCollectionEditor.cs
- ExternalDataExchangeService.cs
- StubHelpers.cs
- SetIndexBinder.cs
- SystemIPGlobalProperties.cs
- ConfigXmlWhitespace.cs
- WindowsFormsLinkLabel.cs
- Cursor.cs
- HttpFileCollection.cs
- LockedAssemblyCache.cs
- DataColumnMapping.cs
- DeviceSpecificChoiceCollection.cs
- TimeEnumHelper.cs
- SiteMapNodeItemEventArgs.cs
- UIElement3D.cs
- CodeTypeReferenceCollection.cs
- CodeTypeReferenceCollection.cs
- RangeValueProviderWrapper.cs
- EventLogPermissionEntryCollection.cs
- HelpEvent.cs
- Debug.cs