Share via


FriendlyUrlSegmentsAttribute Class

.NET Framework 4.5

Represents an attribute that specifies that model binding values are provided by a friendly URL segment.

Inheritance Hierarchy

System.Object
  System.Attribute
    ValueProviderSourceAttribute
      Microsoft.AspNet.FriendlyUrls.ModelBinding.FriendlyUrlSegmentsAttribute

Namespace:  Microsoft.AspNet.FriendlyUrls.ModelBinding
Assembly:  Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)

Syntax

'Declaration
Public NotInheritable Class FriendlyUrlSegmentsAttribute _
    Inherits ValueProviderSourceAttribute
'Usage
Dim instance As FriendlyUrlSegmentsAttribute
public sealed class FriendlyUrlSegmentsAttribute : ValueProviderSourceAttribute
public ref class FriendlyUrlSegmentsAttribute sealed : public ValueProviderSourceAttribute
[<SealedAttribute>]
type FriendlyUrlSegmentsAttribute =  
    class 
        inherit ValueProviderSourceAttribute 
    end
public final class FriendlyUrlSegmentsAttribute extends ValueProviderSourceAttribute

The FriendlyUrlSegmentsAttribute type exposes the following members.

Constructors

  Name Description
Public method FriendlyUrlSegmentsAttribute Creates an instance of the FriendlyUrlSegmentsAttribute class.

Top

Properties

  Name Description
Public property TypeId (Inherited from Attribute.)

Top

Methods

  Name Description
Public method Equals (Inherited from Attribute.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetModelName (Inherited from ValueProviderSourceAttribute.)
Public method GetType (Inherited from Object.)
Public method GetValueProvider (Overrides ValueProviderSourceAttributeGetValueProvider(ModelBindingExecutionContext).)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.Invoke (Inherited from Attribute.)

Top

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.

See Also

Reference

Microsoft.AspNet.FriendlyUrls.ModelBinding Namespace