コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the PacketCapture class.
 /// </summary>
 /// <param name="target">The ID of the targeted resource, only VM is
 /// currently supported.</param>
 /// <param name="storageLocation">Describes the storage location for a
 /// packet capture session.</param>
 /// <param name="bytesToCapturePerPacket">Number of bytes captured per
 /// packet, the remaining bytes are truncated.</param>
 /// <param name="totalBytesPerSession">Maximum size of the capture
 /// output.</param>
 /// <param name="timeLimitInSeconds">Maximum duration of the capture
 /// session in seconds.</param>
 /// <param name="filters">A list of packet capture filters.</param>
 public PacketCapture(string target, PacketCaptureStorageLocation storageLocation, int?bytesToCapturePerPacket = default(int?), int?totalBytesPerSession = default(int?), int?timeLimitInSeconds = default(int?), IList <PacketCaptureFilter> filters = default(IList <PacketCaptureFilter>))
 {
     Target = target;
     BytesToCapturePerPacket = bytesToCapturePerPacket;
     TotalBytesPerSession    = totalBytesPerSession;
     TimeLimitInSeconds      = timeLimitInSeconds;
     StorageLocation         = storageLocation;
     Filters = filters;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the PacketCaptureResult class.
 /// </summary>
 /// <param name="target">The ID of the targeted resource, only VM is
 /// currently supported.</param>
 /// <param name="storageLocation">The storage location for a packet
 /// capture session.</param>
 /// <param name="name">Name of the packet capture session.</param>
 /// <param name="id">ID of the packet capture operation.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 /// <param name="bytesToCapturePerPacket">Number of bytes captured per
 /// packet, the remaining bytes are truncated.</param>
 /// <param name="totalBytesPerSession">Maximum size of the capture
 /// output.</param>
 /// <param name="timeLimitInSeconds">Maximum duration of the capture
 /// session in seconds.</param>
 /// <param name="filters">A list of packet capture filters.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// packet capture session. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 public PacketCaptureResult(string target, PacketCaptureStorageLocation storageLocation, string name = default(string), string id = default(string), string etag = default(string), int?bytesToCapturePerPacket = default(int?), int?totalBytesPerSession = default(int?), int?timeLimitInSeconds = default(int?), IList <PacketCaptureFilter> filters = default(IList <PacketCaptureFilter>), string provisioningState = default(string))
 {
     Name   = name;
     Id     = id;
     Etag   = etag;
     Target = target;
     BytesToCapturePerPacket = bytesToCapturePerPacket;
     TotalBytesPerSession    = totalBytesPerSession;
     TimeLimitInSeconds      = timeLimitInSeconds;
     StorageLocation         = storageLocation;
     Filters           = filters;
     ProvisioningState = provisioningState;
     CustomInit();
 }