AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Attempt to parse the resource component of the ARN into bucket name.

Namespace: Amazon.S3
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public Boolean TryParseBucket(
         Arn arn,
         String bucketName
)
Parameters
arn
Type: Amazon.Arn

An AWS ARN to parse

bucketName
Type: System.String

The bucket name found in the ARN.

Return Value
Type: Boolean
True if the ARN contains a bucket name.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5