Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Principal / IdentityReference.cs / 1 / IdentityReference.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
using System;
using System.Security.Policy; // defines Url class
using System.Globalization;
namespace System.Security.Principal
{
[System.Runtime.InteropServices.ComVisible(false)]
public abstract class IdentityReference
{
internal IdentityReference()
{
// exists to prevent creation user-derived classes (for now)
}
// public abstract string Scheme { get; }
public abstract string Value { get; }
// public virtual Url Url
// {
// get { return new Url(""); } //
public abstract bool IsValidTargetType( Type targetType );
public abstract IdentityReference Translate( Type targetType );
public override abstract bool Equals( object o );
public override abstract int GetHashCode();
public override abstract string ToString();
public static bool operator==( IdentityReference left, IdentityReference right )
{
object l = left;
object r = right;
if ( l == null && r == null )
{
return true;
}
else if ( l == null || r == null )
{
return false;
}
else
{
return left.Equals( right );
}
}
public static bool operator!=( IdentityReference left, IdentityReference right )
{
return !( left == right ); // invoke operator==
}
}
}
// 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
- EpmTargetPathSegment.cs
- ListItemCollection.cs
- CustomErrorCollection.cs
- Row.cs
- SafeProcessHandle.cs
- SessionSwitchEventArgs.cs
- XmlKeywords.cs
- MarkupProperty.cs
- TypeBuilder.cs
- SelectionProcessor.cs
- ImportRequest.cs
- XmlSerializerOperationBehavior.cs
- SemanticResultValue.cs
- TimeSpanConverter.cs
- FileSystemEnumerable.cs
- JsonByteArrayDataContract.cs
- Visual3D.cs
- SqlCrossApplyToCrossJoin.cs
- SerialPinChanges.cs
- Matrix3DValueSerializer.cs
- ConnectionManagementElementCollection.cs
- EnumConverter.cs
- ListBoxChrome.cs
- Regex.cs
- EncryptedPackageFilter.cs
- WebPartTransformerCollection.cs
- Line.cs
- relpropertyhelper.cs
- XamlDesignerSerializationManager.cs
- ConstraintManager.cs
- MimeReturn.cs
- BrowsableAttribute.cs
- EntityDesignerUtils.cs
- ServicePointManager.cs
- StackOverflowException.cs
- ProxyWebPartManager.cs
- XmlReflectionMember.cs
- WebPartCollection.cs
- SemaphoreSecurity.cs
- wgx_commands.cs
- SQLResource.cs
- TypeUtils.cs
- WebPartConnectionsCancelEventArgs.cs
- WebExceptionStatus.cs
- BaseCodeDomTreeGenerator.cs
- CodeDirectionExpression.cs
- FormatConvertedBitmap.cs
- XmlSchemaFacet.cs
- LogFlushAsyncResult.cs
- Trigger.cs
- CharacterMetrics.cs
- BooleanStorage.cs
- XPathNode.cs
- TraceRecord.cs
- Exceptions.cs
- ValidationContext.cs
- ComponentEditorForm.cs
- UserPersonalizationStateInfo.cs
- CompositionTarget.cs
- XmlLoader.cs
- ExcCanonicalXml.cs
- XmlNodeList.cs
- EmbeddedMailObjectsCollection.cs
- XmlToDatasetMap.cs
- SqlWriter.cs
- DataGridView.cs
- ProfileManager.cs
- MailDefinitionBodyFileNameEditor.cs
- LogPolicy.cs
- GridView.cs
- X509ClientCertificateCredentialsElement.cs
- EndpointPerformanceCounters.cs
- BaseTemplateBuildProvider.cs
- SecurityUtils.cs
- DbProviderFactory.cs
- SQLInt64.cs
- XPathChildIterator.cs
- ContextStaticAttribute.cs
- TableLayoutPanelCodeDomSerializer.cs
- MappedMetaModel.cs
- XamlFigureLengthSerializer.cs
- DeclarationUpdate.cs
- JulianCalendar.cs
- ProfileSettingsCollection.cs
- HyperLinkStyle.cs
- _NetRes.cs
- ProgressBarRenderer.cs
- BinaryUtilClasses.cs
- BindingList.cs
- DescendantQuery.cs
- RequestSecurityToken.cs
- Effect.cs
- LoadedOrUnloadedOperation.cs
- MethodBuilderInstantiation.cs
- SoapReflectionImporter.cs
- SafeRightsManagementHandle.cs
- TextEditorSelection.cs
- Empty.cs
- NullableFloatAverageAggregationOperator.cs
- MessageContractImporter.cs