Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MediaEntryAttribute.cs / 1305376 / MediaEntryAttribute.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Attribute to denote entity types describing a media entry // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; ////// This class marks a type that represents an Astoria client entity /// such that the Astoria client will treat it as a media entry /// according to ATOM's "media link entry" concept. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public sealed class MediaEntryAttribute : Attribute { ///Name of the member that contains the data for the media entry private readonly string mediaMemberName; ////// Creates a new MediaEntryAttribute attribute and sets the name /// of the member that contains the actual data of the media entry /// (e.g. a byte[] containing a picture, a string containing HTML, etc.) /// /// Name of the member that contains the data for the media entry public MediaEntryAttribute(string mediaMemberName) { Util.CheckArgumentNull(mediaMemberName, "mediaMemberName"); this.mediaMemberName = mediaMemberName; } ///Name of the member that contains the data for the media entry public string MediaMemberName { get { return this.mediaMemberName; } } } } // 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
- propertytag.cs
- AmbientProperties.cs
- ItemsPanelTemplate.cs
- Clipboard.cs
- MaterializeFromAtom.cs
- PrintDialog.cs
- IconHelper.cs
- XmlDocument.cs
- OutOfProcStateClientManager.cs
- OdbcConnection.cs
- GZipStream.cs
- XmlSerializationReader.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewCheckBoxCell.cs
- TreeNodeClickEventArgs.cs
- FileClassifier.cs
- Rect.cs
- MethodBuilderInstantiation.cs
- DbConnectionStringCommon.cs
- ChtmlMobileTextWriter.cs
- HttpListenerPrefixCollection.cs
- SID.cs
- InfoCardTraceRecord.cs
- GlobalDataBindingHandler.cs
- TextTreeTextNode.cs
- Pen.cs
- ItemContainerGenerator.cs
- DebugInfoGenerator.cs
- PackagingUtilities.cs
- DialogResultConverter.cs
- TdsParserSafeHandles.cs
- AppModelKnownContentFactory.cs
- TypeReference.cs
- OperatingSystem.cs
- PanelStyle.cs
- HttpModuleActionCollection.cs
- EnumerableValidator.cs
- OdbcException.cs
- CodeFieldReferenceExpression.cs
- PropertyManager.cs
- FtpWebRequest.cs
- PersonalizationDictionary.cs
- NominalTypeEliminator.cs
- VariableQuery.cs
- Wizard.cs
- TraceHandler.cs
- WebScriptEndpointElement.cs
- TrackBarRenderer.cs
- CaseInsensitiveComparer.cs
- RuntimeConfigLKG.cs
- WebPartDescriptionCollection.cs
- SQLByte.cs
- LateBoundBitmapDecoder.cs
- EditingScope.cs
- RadioButtonFlatAdapter.cs
- InternalCache.cs
- PageThemeParser.cs
- InvariantComparer.cs
- ValidatingCollection.cs
- GenericTypeParameterConverter.cs
- FileAuthorizationModule.cs
- documentsequencetextpointer.cs
- FocusWithinProperty.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OneOfElement.cs
- MethodSet.cs
- QualifiedCellIdBoolean.cs
- _BufferOffsetSize.cs
- ChameleonKey.cs
- SettingsAttributeDictionary.cs
- SplitterCancelEvent.cs
- RowToFieldTransformer.cs
- ShapingEngine.cs
- OleServicesContext.cs
- IMembershipProvider.cs
- MobileCapabilities.cs
- BaseDataListPage.cs
- FontFamilyConverter.cs
- DoubleLinkList.cs
- TabControlAutomationPeer.cs
- ScalarConstant.cs
- DataControlCommands.cs
- CodeAttachEventStatement.cs
- WizardPanel.cs
- RadioButtonList.cs
- XmlSchemaFacet.cs
- XmlBinaryReader.cs
- XmlWhitespace.cs
- FlowchartDesigner.xaml.cs
- LeftCellWrapper.cs
- HandlerBase.cs
- UpdateEventArgs.cs
- AutomationPatternInfo.cs
- Model3DGroup.cs
- BaseAutoFormat.cs
- GrammarBuilder.cs
- GeneralTransformCollection.cs
- RecognizedPhrase.cs
- DataBoundLiteralControl.cs
- SamlAssertionDirectKeyIdentifierClause.cs