Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / BStrWrapper.cs / 1305376 / BStrWrapper.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: BStrWrapper. ** ** ** Purpose: Wrapper that is converted to a variant with VT_BSTR. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Security; using System.Security.Permissions; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class BStrWrapper { [System.Security.SecuritySafeCritical] // auto-generated [SecurityPermissionAttribute(SecurityAction.Demand,Flags=SecurityPermissionFlag.UnmanagedCode)] public BStrWrapper(String value) { m_WrappedObject = value; } [System.Security.SecuritySafeCritical] // auto-generated [SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)] public BStrWrapper(Object value) { m_WrappedObject = (String)value; } public String WrappedObject { get { return m_WrappedObject; } } private String m_WrappedObject; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: BStrWrapper. ** ** ** Purpose: Wrapper that is converted to a variant with VT_BSTR. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Security; using System.Security.Permissions; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class BStrWrapper { [System.Security.SecuritySafeCritical] // auto-generated [SecurityPermissionAttribute(SecurityAction.Demand,Flags=SecurityPermissionFlag.UnmanagedCode)] public BStrWrapper(String value) { m_WrappedObject = value; } [System.Security.SecuritySafeCritical] // auto-generated [SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)] public BStrWrapper(Object value) { m_WrappedObject = (String)value; } public String WrappedObject { get { return m_WrappedObject; } } private String m_WrappedObject; } } // 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
- ConfigErrorGlyph.cs
- BamlRecords.cs
- Visitor.cs
- objectquery_tresulttype.cs
- ExtensionQuery.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ControlPersister.cs
- HwndKeyboardInputProvider.cs
- NegationPusher.cs
- GregorianCalendar.cs
- GridViewHeaderRowPresenter.cs
- Lease.cs
- FlatButtonAppearance.cs
- IntermediatePolicyValidator.cs
- ProjectionPath.cs
- StrokeSerializer.cs
- Span.cs
- XmlDataProvider.cs
- ADConnectionHelper.cs
- ProcessDesigner.cs
- SchemaObjectWriter.cs
- SerializableAuthorizationContext.cs
- PackagePart.cs
- DocumentAutomationPeer.cs
- IPPacketInformation.cs
- FixedHyperLink.cs
- MiniConstructorInfo.cs
- DoubleLink.cs
- HttpHeaderCollection.cs
- SerialErrors.cs
- ComponentManagerBroker.cs
- PageSettings.cs
- CryptoProvider.cs
- DetailsViewCommandEventArgs.cs
- ClientConfigurationHost.cs
- DataControlImageButton.cs
- FormsAuthenticationUser.cs
- WebSysDefaultValueAttribute.cs
- PriorityQueue.cs
- SqlDataSourceAdvancedOptionsForm.cs
- XDRSchema.cs
- unitconverter.cs
- XmlEntityReference.cs
- SafeHandle.cs
- COM2Properties.cs
- JournalEntryListConverter.cs
- SingleStorage.cs
- TrackingConditionCollection.cs
- XmlSerializerFaultFormatter.cs
- LogicalMethodInfo.cs
- Profiler.cs
- Ops.cs
- DataSourceHelper.cs
- XmlSchemaIdentityConstraint.cs
- VisualStyleRenderer.cs
- Assembly.cs
- InstallerTypeAttribute.cs
- CapabilitiesState.cs
- ThaiBuddhistCalendar.cs
- TextWriter.cs
- MappingMetadataHelper.cs
- EnvironmentPermission.cs
- DefaultClaimSet.cs
- ProjectionPlanCompiler.cs
- HttpCookiesSection.cs
- XmlElementList.cs
- UnsafeNativeMethods.cs
- EntityConnectionStringBuilderItem.cs
- TablePatternIdentifiers.cs
- MarkupExtensionSerializer.cs
- XmlIgnoreAttribute.cs
- SystemColorTracker.cs
- CompleteWizardStep.cs
- WSSecurityJan2004.cs
- OfTypeExpression.cs
- StyleReferenceConverter.cs
- GeometryCollection.cs
- PropertyFilterAttribute.cs
- _HTTPDateParse.cs
- Size3DValueSerializer.cs
- WebPartDisplayModeCancelEventArgs.cs
- SslStreamSecurityBindingElement.cs
- ControlBuilderAttribute.cs
- TemplateBuilder.cs
- QilXmlReader.cs
- DragStartedEventArgs.cs
- DataSourceXmlSerializationAttribute.cs
- HelpEvent.cs
- WebEvents.cs
- ActivityExecutorOperation.cs
- DockProviderWrapper.cs
- SqlDataSourceQueryEditorForm.cs
- HybridDictionary.cs
- DataBoundControlAdapter.cs
- ReadOnlyMetadataCollection.cs
- TrustLevelCollection.cs
- sqlstateclientmanager.cs
- ProfileEventArgs.cs
- XmlEnumAttribute.cs
- PageHandlerFactory.cs