Прочетете на английски Редактиране

Споделяне чрез


DirectoryAttribute.Add Method

Definition

Adds the specified value to this attribute.

Overloads

Add(Byte[])

The Add(Byte[]) method adds the specified value to this attribute.

Add(String)

The Add(String) method adds the specified value to this attribute.

Add(Uri)

The Add(Uri) method adds the specified value to this attribute.

Add(Byte[])

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

The Add(Byte[]) method adds the specified value to this attribute.

C#
public int Add(byte[] value);

Parameters

value
Byte[]

The value to add.

Returns

The index at which the value has been added.

Exceptions

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

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.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)

Add(String)

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

The Add(String) method adds the specified value to this attribute.

C#
public int Add(string value);

Parameters

value
String

The value to add.

Returns

The index at which the value has been added.

Exceptions

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

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.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)

Add(Uri)

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

The Add(Uri) method adds the specified value to this attribute.

C#
public int Add(Uri value);

Parameters

value
Uri

The value to add.

Returns

The index at which the value has been added.

Exceptions

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

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.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)