Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / GlobalProxySelection.cs / 1305376 / GlobalProxySelection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { [Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")] public class GlobalProxySelection { // This just wraps WebRequest.DefaultWebProxy and modifies it to be compatible with Everett. // It needs to return a WebProxy whenever possible, and an EmptyWebProxy instead of null. public static IWebProxy Select { get { IWebProxy proxy = WebRequest.DefaultWebProxy; if (proxy == null) { return GetEmptyWebProxy(); } WebRequest.WebProxyWrapper wrap = proxy as WebRequest.WebProxyWrapper; if (wrap != null) { return wrap.WebProxy; } return proxy; } set { WebRequest.DefaultWebProxy = value; } } public static IWebProxy GetEmptyWebProxy() { return new EmptyWebProxy(); } } } // 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
- DataGridViewElement.cs
- ColorKeyFrameCollection.cs
- ListViewDeletedEventArgs.cs
- QilReplaceVisitor.cs
- KnownBoxes.cs
- IndexedSelectQueryOperator.cs
- DbReferenceCollection.cs
- NonDualMessageSecurityOverHttpElement.cs
- DynamicRenderer.cs
- DataGridViewCellParsingEventArgs.cs
- SortableBindingList.cs
- EdmToObjectNamespaceMap.cs
- RawKeyboardInputReport.cs
- XmlSchemaComplexContent.cs
- HtmlInputButton.cs
- XmlAttributeCollection.cs
- ToolStripRenderer.cs
- ConditionChanges.cs
- PropertyTabChangedEvent.cs
- Predicate.cs
- ToolStripManager.cs
- ConnectionManagementElement.cs
- QilXmlWriter.cs
- FtpWebRequest.cs
- Rect3DConverter.cs
- LostFocusEventManager.cs
- SectionUpdates.cs
- SqlNotificationRequest.cs
- CollectionMarkupSerializer.cs
- UserNameServiceElement.cs
- ToolStripDropDownButton.cs
- RelationshipType.cs
- IntersectQueryOperator.cs
- ToolStripStatusLabel.cs
- _LazyAsyncResult.cs
- MinMaxParagraphWidth.cs
- UInt32Converter.cs
- Stack.cs
- NotCondition.cs
- TogglePatternIdentifiers.cs
- Hash.cs
- NavigationProgressEventArgs.cs
- VirtualizedItemProviderWrapper.cs
- CodeTypeDeclaration.cs
- SBCSCodePageEncoding.cs
- DeferredTextReference.cs
- RectangleConverter.cs
- IssuanceLicense.cs
- RequestCacheValidator.cs
- DesignerSerializationOptionsAttribute.cs
- HiddenField.cs
- MatrixAnimationUsingKeyFrames.cs
- ExceptionCollection.cs
- Aes.cs
- DesignerObject.cs
- SchemaCreator.cs
- SettingsBase.cs
- FindResponse.cs
- CompModSwitches.cs
- DynamicPropertyHolder.cs
- ButtonChrome.cs
- PathFigureCollectionConverter.cs
- SelectionBorderGlyph.cs
- EdmRelationshipRoleAttribute.cs
- SourceSwitch.cs
- PageCodeDomTreeGenerator.cs
- X509ClientCertificateCredentialsElement.cs
- LeafCellTreeNode.cs
- HexParser.cs
- BitmapEffectInputData.cs
- MoveSizeWinEventHandler.cs
- PropVariant.cs
- FtpWebRequest.cs
- Config.cs
- SerialPort.cs
- SchemaElementLookUpTableEnumerator.cs
- GraphicsPath.cs
- NoResizeHandleGlyph.cs
- Vector.cs
- BasePropertyDescriptor.cs
- D3DImage.cs
- HostingPreferredMapPath.cs
- WindowsAuthenticationEventArgs.cs
- OleDbMetaDataFactory.cs
- SessionIDManager.cs
- StringHelper.cs
- PropertyMap.cs
- RadioButtonList.cs
- TypedMessageConverter.cs
- Cursor.cs
- securitycriticaldataClass.cs
- ConfigurationStrings.cs
- TableCell.cs
- NamespaceListProperty.cs
- SyndicationElementExtensionCollection.cs
- FixedSOMPageElement.cs
- ClientRolePrincipal.cs
- LoginName.cs
- TripleDESCryptoServiceProvider.cs
- DataControlLinkButton.cs