DirectoryAttribute Constructors

Definition

Creates an instance of the DirectoryAttribute class.

Overloads

DirectoryAttribute()

The DirectoryAttribute() constructor creates an instance of the DirectoryAttribute class.

DirectoryAttribute(String, Byte[])

The DirectoryAttribute(String, Byte[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

DirectoryAttribute(String, Object[])

The DirectoryAttribute(String, Object[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and values.

DirectoryAttribute(String, String)

The DirectoryAttribute(String, String) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

DirectoryAttribute(String, Uri)

The DirectoryAttribute(String, Uri) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

DirectoryAttribute()

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

The DirectoryAttribute() constructor creates an instance of the DirectoryAttribute class.

C#
public DirectoryAttribute();

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryAttribute(String, Byte[])

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

The DirectoryAttribute(String, Byte[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

C#
public DirectoryAttribute(string name, byte[] value);

Parameters

name
String

The attribute name.

value
Byte[]

The attribute value.

Exceptions

name or value contains a null reference (Nothing in Visual Basic).

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryAttribute(String, Object[])

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

The DirectoryAttribute(String, Object[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and values.

C#
public DirectoryAttribute(string name, params object[] values);

Parameters

name
String

The attribute name.

values
Object[]

An array of values for the attribute.

Exceptions

name or value contains a null reference (Nothing in Visual Basic).

An element of values is not of type string, byte[], or Uri.

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryAttribute(String, String)

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

The DirectoryAttribute(String, String) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

C#
public DirectoryAttribute(string name, string value);

Parameters

name
String

The attribute name.

value
String

The attribute value.

Exceptions

name or value contains a null reference (Nothing in Visual Basic).

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryAttribute(String, Uri)

Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs
Source:
DirectoryAttribute.cs

The DirectoryAttribute(String, Uri) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

C#
public DirectoryAttribute(string name, Uri value);

Parameters

name
String

The attribute name.

value
Uri

The attribute value.

Exceptions

name or value contains a null reference (Nothing in Visual Basic).

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)