.NET Framework Class Library
CustomProviderDataAttribute Class

Provides a string of custom data to the provider for a profile property.

Inheritance Hierarchy
SystemObject
   SystemAttribute
    System.Web.ProfileCustomProviderDataAttribute

Namespace:   System.Web.Profile
Assembly:  System.Web (in System.Web.dll)
Syntax
<[%$TOPIC/ms151802_en-us_VS_110_2_0_0_0_0%]([%$TOPIC/ms151802_en-us_VS_110_2_0_0_0_1%].Property)> _
Public NotInheritable Class CustomProviderDataAttribute _
	Inherits [%$TOPIC/ms151802_en-us_VS_110_2_0_0_0_2%]
[[%$TOPIC/ms151802_en-us_VS_110_2_0_1_0_0%]([%$TOPIC/ms151802_en-us_VS_110_2_0_1_0_1%].Property)]
public sealed class CustomProviderDataAttribute : [%$TOPIC/ms151802_en-us_VS_110_2_0_1_0_2%]
[[%$TOPIC/ms151802_en-us_VS_110_2_0_2_0_0%]([%$TOPIC/ms151802_en-us_VS_110_2_0_2_0_1%]::Property)]
public ref class CustomProviderDataAttribute sealed : public [%$TOPIC/ms151802_en-us_VS_110_2_0_2_0_2%]
[<[%$TOPIC/ms151802_en-us_VS_110_2_0_3_0_0%]>]
[<[%$TOPIC/ms151802_en-us_VS_110_2_0_3_0_1%]([%$TOPIC/ms151802_en-us_VS_110_2_0_3_0_2%].Property)>]
type CustomProviderDataAttribute =  
    class 
        inherit [%$TOPIC/ms151802_en-us_VS_110_2_0_3_0_3%] 
    end
public final class CustomProviderDataAttribute extends [%$TOPIC/ms151802_en-us_VS_110_2_0_4_0_0%]

The CustomProviderDataAttribute type exposes the following members.

Constructors
  NameDescription
Public method CustomProviderDataAttributeCreates a new instance of the CustomProviderDataAttribute class and specifies a string of custom data.
Top
Properties
  NameDescription
Public property CustomProviderDataGets a string of custom data for the profile property provider.
Public property TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)
Top
Methods
  NameDescription
Public method EqualsInfrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
Public method GetHashCodeReturns the hash code for this instance. (Inherited from Attribute.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method IsDefaultAttributeGets a value indicating whether the CustomProviderData property is set to the default value. (Overrides AttributeIsDefaultAttribute.)
Public method MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implemetation Private method _AttributeGetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.)
Explicit interface implemetation Private method _AttributeGetTypeInfoRetrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.)
Explicit interface implemetation Private method _AttributeGetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.)
Explicit interface implemetation Private method _AttributeInvokeProvides access to properties and methods exposed by an object. (Inherited from Attribute.)
Top
Remarks

The CustomProviderDataAttribute class is used to supply a string of data with a profile property to a custom profile provider. The custom data string can be set to any string value and is set using the customProviderData attribute of the add configuration element for adding profile properties. If the customProviderData attribute is set, then the value is placed in the Attributes collection for the property and is indexed by the name "CustomProviderData."

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.